empty is zero
Scott Morrow
scott at elementarysoftware.com
Thu Jul 9 18:11:12 EDT 2009
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
On Jul 9, 2009, at 3:05 PM, Mark Schonewille wrote:
> Scott,
>
> It looks like as soon as you pass a parameter, it gets parsed and
> hence gets a value of 0, similar to when you parse empty*1.
>
> --
> 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 9 jul 2009, at 23:56, Scott Morrow wrote:
>
>> Hello Mark,
>>
>>> If you check empty = 0, you'll get false
>>
>> I DO get false in the message box but in a handler where there is
>> nothing being passed in the parameter I get the following (note
>> that expressly putting empty into the parameter variable does give
>> the expected result.)
>>
>
> _______________________________________________
> 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