Lua variable

This article is tagged with: Lua variable and lua

Lua variable

-- Variables are global by default:
globalVariable = 10
-- To make a variable local:
local localVariable = 20

lua variable

-- Private Variable
local name1 = "John"
-- Public Variable
name2 = "Jane"
print(name1)
print(name2)

This article is tagged with: Lua variable and lua