Local

local name <= expression>

Create a local variable named “name.” From this point until the end of the function (the end statement), this variable will supersede any existing global symbol with the same name. The variable is only available inside the function, and ceases to exist once the function has completed execution. A separate copy of the variable is created for each function execution. The variable may be initialized with an optional assignment immediately after creation. For example:

local abc

creates a local variable abc, whose initial value is the integer zero. This:

local abc = one * two

creates a local variable whose initial value is the result of the expression one * two. Only one variable may be created per local statement. No argument statements may follow a local statement in a function.