lua-users home
lua-l archive

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


Hi,

> Is it possible to distinguish between an undefined global variable
> and one that is defined but has the value 'nil'? Or does assigning
> the value 'nil' to a global variable essentially undefine that global?

Assigning nil to table entries (including the globals table) will make make
the entry disappear.  Lua 5 introduced the boolean values true and false,
maybe you can use these (i.e. false) instead?

Bye,
Wim