This is disturbing!
Jim Lambert
jiml at netrin.com
Thu Sep 6 15:34:33 EDT 2018
> Did anyone know that "6. " is equal to "6."???
It’s somewhat similar to
value(“h “) is equal to value(“h”),
while
“h “ is not equal to “h”.
I’m not disturbed but appreciative that the engine tries to convert both sides to numbers when doing a comparison. Just must remember that and use more “string-y” ways to compare strings as only strings.
For example other functions can reveal the strings “6. “ and “6.” are not the same string, such as length(“6. “) is not equal to length( “6.”).
Jim Lambert
More information about the use-livecode
mailing list