I’m trying to define a string equality function:
[RoutineDef, StrEquals,
[note, s1]
[if, ([StrLength, s1] == [StrLength, s2]) && ([StrFind, s1, s2] == 0),
1,
0
],
s1, s2
]
[if, [RoutineCall, StrEquals, “hello”, “hello”],
[note, “hello”]]
The second command should hopefully put up a note saying “hello” on the screen. But the script fails to parse.
Basically, StrEquals is supposed to return either a 1 or a 0, depending on whether or not its string arguments are equal.
Can anyone help with this?
Thanks,
Ken