Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

Lua dynamic variable name

local variablename = "var"

_G[variablename] = "Hello world!"

print(var) --> Hello world!
 
PREVIOUS NEXT
Tagged: #Lua #dynamic #variable
ADD COMMENT
Topic
Name
9+9 =