Is zero the same as empty?
Bob Sneidar
bobsneidar at iotecdigital.com
Mon Oct 27 18:46:15 EDT 2014
This is why we don’t ask cats to do arithmetic!
Bob S
> On Oct 27, 2014, at 13:15 , dunbarx at aol.com wrote:
>
> Hugh.
>
>
> But this will act the same if t1 contains "0" as well. You are testing the two cats with arithmetic. When you do that, the result will be the same.
>
>
>
> -----Original Message-----
> From: FlexibleLearning.com <admin at FlexibleLearning.com>
> To: use-livecode <use-livecode at lists.runrev.com>
> Sent: Mon, Oct 27, 2014 4:00 pm
> Subject: Re: Is zero the same as empty?
>
>
> As Jacque has pointed out, 'empty' and 'zero' depend on context. When doing
> math calculations, I always force a math evaluation...
>
> If t1 + 0 = 0 then ...
>
> If t1 is empty it will then always evaluate to zero.
>
> Might help in your situation.
>
> Best regards,
>
> Hugh Senior
> FLCo
>
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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