lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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