Local
local name <=expression> <, name2 <=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.
Any number of local variables may be created in each local statement, delimited by commas:
local abc = one * two, def = three * four, ghi
Was this helpful? ... | Itasca Software © 2024, Itasca | Updated: Dec 19, 2024 |