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
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
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