Empty and logical expressions

dunbarx at aol.com dunbarx at aol.com
Thu Nov 8 16:18:16 EST 2012


Hi.


If we are not talking about numbers, the ">" operator will compare the ascii values of the two arguments. "0" has ascii 48. Empty, though has ascii, well, empty.



 I suppose that 48 > nothing.



Craig Newman




-----Original Message-----
From: Ralph DiMola <rdimola at evergreeninfo.net>
To: 'How to use LiveCode' <use-livecode at lists.runrev.com>
Sent: Thu, Nov 8, 2012 4:04 pm
Subject: Empty and logical expressions


I just ran down a bug because.....

(empty<0) evaluates to true. I would have thought empty is only equal to
empty(or "") and any other logical test would be false.

Is this common knowledge or did I miss something in the docs?


Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


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

 



More information about the use-livecode mailing list