lua-users home
lua-l archive

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


| 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