This is disturbing!
Jim Lambert
jiml at netrin.com
Fri Sep 7 00:53:02 EDT 2018
> RichardG wrote:
> Any suggestions for a new operator token to specify numeric equivalence?
Or maybe to specify string equivalence.
> Did anyone know that "6. " is equal to "6."???
string( "6. “) is not equal to string( "6.”)
where the function string() would tell LC not to try to convert the string into a number, but simply leave it as a literal string for comparison purposes.
Of course, another way to prevent LC from converting a textual number into an actual number is to append a string to the textual number:
whereas "6. “ = "6.” returns TRUE
"6. “ & “a” = "6.” & “a” returns FALSE.
Jim Lambert
More information about the use-livecode
mailing list