Lua Programming/How to Lua/nil
From Wikibooks, open books for an open world
Uninitialized variables have a value of nil[edit]
In lua, uninitialized variables have a value of nil.
Deleting a global variable[edit]
A global variable can be deleted by assignment using a value of nil:
a = nil -- Delete the variable