empty is zero
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Jul 9 18:52:42 EDT 2009
Scott,
empty = 0 --> empty doesn't get parsed
empty * 1 = 0 --> empty gets parsed
tParam gets *parsed* because it is passed on to a handler. Parsed, hence
tParam = 0 --> true.
Just consider this a fact. It may not be entirely logical, but it
isn't too difficult to remember and it is easy to work around.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.1 http://snapper.economy-x-talk.com
If you sent me an e-mail before 21 June and haven't got a reply yet,
please send me a reminder.
On 10 jul 2009, at 00:39, Scott Morrow wrote:
> Hello Mark and Jacque,
>
> empty + 0 = 0 is true in the message box
> empty = 0 is not true in the message box but the <empty?> parameter
> in a script does return true (tParam = 0)
>
> Rats, I'm obviously not getting something. Maybe it's more coffee.
>
> -Scott
>
>
More information about the use-livecode
mailing list