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

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 D. Moss   . ,,^^   co:3
Buy Less, Live More