Zero/empty
Bob Sneidar
bobs at twft.com
Tue Sep 11 14:16:44 EDT 2012
on mouseUp pMouseBtnNo
put empty into tVar
put tvar is not zero
end mouseUp
results in true. Not sure what is going on there.
Bob
On Sep 11, 2012, at 10:47 AM, Peter Haworth wrote:
> Just ran across a little oddity. The statement "if tVar is not zero"
> evaluates to false if tVar is empty. Apparently empty and zero are treated
> the same for comparison purposes?
> Pete
> lcSQL Software <http://www.lcsql.com>
> _______________________________________________
> 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