📜  全局变量 lua 代码示例

📅  最后修改于: 2022-03-11 14:54:55.603000             🧑  作者: Mango

代码示例1
--[[
Global variables don't need a declaration like "local." Instead, you'd just
write like this:
]]--

variable = --value

--[[ 
Note, you don't always have to even assign a value to a variable. You can
use it for the first time and get a value of "nil" which you can update later.
]]--