empty is zero

Scott Morrow scott at elementarysoftware.com
Thu Jul 9 18:39:36 EDT 2009


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


On Jul 9, 2009, at 3:21 PM, Mark Schonewille wrote:

> Hi Scott,
>
> No, unless you're doing a calculation, because then it is parsed as  
> a number. See Jacque's reply.
>
> --
> 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:11, Scott Morrow wrote:
>
>> Hello Mark,
>>
>> But shouldn't the isNumber function show it to be a number at that  
>> point?  I'm evaluating it as both empty, not a number and zero.
>>
>> Thanks,
>>
>> Scott
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list