Lua Programming/How to Lua/global

Global variables do not need declaration prior to useEdit

In lua, global variables do not need declaration prior to use.

Deleting a global variableEdit

A global variable can be deleted by assignment using a value of nil:

a = nil    -- Delete the variable
Last modified on 1 February 2011, at 00:27