[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using If's
- From: "Jonathan Branam" <sspeare@...>
- Date: Wed, 29 Aug 2001 22:43:23 -0700
In Lua, nil is false. Any value besides nil is true.
If you return nil for false, it will work.
-Jonathan
----- Original Message -----
From: "Denis Lamarche" <brainwav@hotmail.com>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Wednesday, August 29, 2001 9:48 PM
Subject: Using If's
> Hi, This is what im doing:
>
> [LUA]
> if Check_Flag(VISIBLE)==1 then
> Text("Yup, the flag is set")
> end
>
> Where Check_Flag() and Text() are both 'C' functions. Is is possible to
not
> have to use the '==1' like in 'C'?? I just want it to be TRUE if
Ckeck_Flag
> returns something other than ZERO and FALSE if it returns ZERO.
>
> Denis Lamarche
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>