Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua globals

--Getfenv used the make normal variables into a global variable

myVariable = "Hello, environments" -- Note: a global variable (non-local)
local env = getfenv()
print(env["myVariable"]) --> Hello, environments
 
PREVIOUS NEXT
Tagged: #lua #globals
ADD COMMENT
Topic
Name
8+2 =