lua-users home
lua-l archive

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


Nick Trout wrote:
Just out of interest the ~= nil is redundant. The following does the
same:

s = project:FindSprite("Title") if s then print("we have a title") end

Is that right?  'if s~=nil' will pass on boolean false, 'if s' will fail.

--Adam
--
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3
Buy Less, Live More