|
|
||
|
Gergo Szakal wrote:if table[key] then ... end
means that if the given key in the table is non-nil, then...
Note that false is a valid table value, and in that case the test above will fail. To be sure a key is not used check explicitly against nil.
-- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- -- -- -- -- -- -- -- -- -- -- -- -- --