[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: inline conditional assignment possible?
- From: "Adam D. Moss" <adam@...>
- Date: Thu, 20 Nov 2003 09:44:15 +0000
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")
Is that right? 'if s~=nil' will pass on boolean false, 'if s' will fail.
Adam D. Moss . ,,^^ email@example.com http://www.foxbox.org/ co:3
Buy Less, Live More