Is zero the same as empty?

dunbarx at dunbarx at
Mon Oct 27 16:15:47 EDT 2014


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: <admin at>
To: use-livecode <use-livecode at>
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

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription 


More information about the use-livecode mailing list