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:
Yes, as I indicated in my statement "For the purposes of testing (expression evaluation), any non-zero value is considered TRUE.".
When I said a true is considered an integer 1, I meant specifically the value given to the keyword TRUE, which is why I clarified the part about expressions later on in my email, which I know you read, right Buzz? :)
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.
[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!]
