This is disturbing!
Jim Lambert
jiml at netrin.com
Fri Sep 7 16:44:55 EDT 2018
> Bob S wrote:
> There is already a string keyword.
>
True. ‘Stringify()’ or ‘’evaluateAsString()’
It’s easy enough to write a function to force string comparisons for those rare edge cases like "6. " is equal to "6.” where the engine automatically converts the strings to numbers.
function compareAsStrings string1, string2
return string1 & "a" = string2 & "a"
end compareAsStrings
compareAsStrings("6. ","6.") returns FALSE.
Jim Lambert
More information about the use-livecode
mailing list