At 7:40 AM -0400 10/5/03, you wrote:
Lingo doesn't have a boolean variable type. A true is considered an integer 1.

Actually, TRUE = anything non-zero (& <> VOID since that's also treated as zero)
for instance:


x = 3
if x then
  -- code in here will get evaluated
end if

hth

-Buzz


Easy test:


testVar =TRUE
put testVar
-- 1

testVar =FALSE
put testVar
-- 0

For the purposes of testing (expression evaluation), any non-zero value is considered TRUE.


At 05:47 AM 10/5/03, Peter Bochan wrote:
Hi Lingo's!

I wonder is there a significant difference between assigning to property
variables 0 or 1 values or TRUE or FALSE ones?

For example:

property pCurrentSprite
property pPrevSprite

on beginSprite me
   pCurrentSprite = 1 --(or TRUE?)
   pPrevSprite = 0 --(or FALSE?)
end

Just to be sure I stated it clearly. I don't want to assign a value to a
variable (like 56 or whatever) I just want to state its boolean
property.

P.S. After writing this I thought to myself: but how does Lingo know how
to distinguish 1 in the meaning of boolean, than of the value? Hmm

Thanks in advance

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to