[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: inline conditional assignment possible?
- From: Andy Jones <andyfirebird@...>
- Date: Fri, 21 Nov 2003 20:19:01 +0000
>>>>
>> > s = project:FindSprite("Title")
>> > if s then
>> > print("we have a title")
>> > end
> [snip]
>I think in this context it's correct (i.e. I reakon FindSprite returns
>nil when the name is not found). But you are also right, if false is
>returned it is not the same.
>
>I got the and one a bit skewed as well. Mmmm will think twice about
>answering mailing lists when I'm working late again :)
><<<
Well, it would work just fine in Lua 4 ::grin::