Re: Zero/empty

2012-09-11 Thread Peter Haworth
I think you nailed it Mike. I simplified my post a bit. I'm actually testing a parameter to a function not a variable and the call to the function does not pass the parameter. In other words: put myFunction(p1) into whatever function myFunction p1,p2 if p2 is not zero….. end myFunction This

Re: Zero/empty

2012-09-11 Thread Bob Sneidar
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 e

Re: Zero/empty

2012-09-11 Thread Mike Bonner
There are some quirks I found on testing this. This evaluates to false local tvar --put empty into tvar put (tvar is not zero) This evaluates to true local tvar put empty into tvar put (tvar is not zero) So it seems a declared var that has had nothing done to it sees itself as empty and

Zero/empty

2012-09-11 Thread Peter Haworth
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 ___ use-livecode mailing list us