[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Using If's
- From: "Josh Jensen" <joshj@...>
- Date: Wed, 29 Aug 2001 22:19:18 -0700
> 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.
The best you'll be able to do is return something other than nil for
true and return nil for false. If nil is returned as false, then you
can write:
if Check_Flag(VISIBLE) then
Josh