This is disturbing!
Paul Dupuis
paul at researchware.com
Thu Sep 6 13:24:10 EDT 2018
On 9/6/2018 11:46 AM, Bob Sneidar via use-livecode wrote:
> Did anyone know that "6. " is equal to "6."???
>
> THAT is disturbing! So now we have to check the length of a string as well to make sure there is an exact match???
>
This is the price of having a "type-less" programming language. "6." get
evaluated to see if it is numeric, which it is an is treated as the
number 6. Likewise with "6. " and 6 does equal 6.
Now, inĀ typed language, you would have declared both things as STRINGs
and you would get a false.
More information about the use-livecode
mailing list