[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using If's
- From: "Nick Trout" <nick@...>
- Date: Thu, 30 Aug 2001 10:34:56 +0100
| 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.
-- wrap fn
function Check_Flag(flag)
return %Check_Flag(flag)==1
end
if Check_Flag(VISIBLE) then
Text("Yup, the flag is set")
end