if ("SCENE"=="BOOTH",1,0) always 1... bug?

Is something changed, am I spacing out, or what?

echo "SCENE"=="BOOTH" always returns 1
same for (if ( “SCENE” == “BOOTH”,1,0)
or other variants of the == operator with two strings on the side.

I guess I’ll use strcmp, but I’m curious.
d
I’m using 69.1145

== compares floats, so the strings are converted to the numbers 0. we will let you
know if that changes in the future, but for now, please use strcmp.

thanx.

Selina

oh wow - I’ve had this discussion with Jarrett a couple of times in the last few years, and he mentioned that he always uses == for strings and it always worked!

It’s been one of those issues that has haunted me for years (sometimes it seemed to work, sometimes it didn’t) - good to know…

d