lua-users home
lua-l archive

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


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