how to compare messages?

remainz's icon

I need to do an if test on an incoming written messages but because messages refer to nearly everything I cant find where to look for the simple answer. I dont want to if/then/compare floats or integers just words.
If not IF then what?
eg

if sausage == sausage then 1
if $t1 != $t2 then 0

thanks newby

schlam's icon

[zl.compare]

double_UG's icon

match or routepass

Max Patch
Copy patch and select New From Clipboard in Max.

Max Patch
Copy patch and select New From Clipboard in Max.

remainz's icon

thanks guys!
and route

Roman Thilenius's icon


whenever you need to do something with symbols and there seems to be no object for it, think of symbols as lists with one argument, then you will find a way.

even before zl.compare existed, you could compare symbols with each other using zl objects, for example.