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.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to