lua-users home
lua-l archive

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


On 20/03/2013 19:07, Andrew Starks wrote:
...because t.attribute could be set to boolean false. So if I want to
know if it's there and false:

if t.attribute ~= nil and not t.attribute then .... end

Why not just:

if t.attribute == false then .... end ?

--
Shmuel