lua defining variables code example
Example 1: lua make variable global
varname = varval
Example 2: lua variable
-- Private Variable
local name1 = "John"
-- Public Variable
name2 = "Jane"
print(name1)
print(name2)
varname = varval
-- Private Variable
local name1 = "John"
-- Public Variable
name2 = "Jane"
print(name1)
print(name2)