-- single line comment
--[[
multi-line
comment
]]
-- function (global)
function function_name(vars)
return vars
end
-- if query
local a = 10
if a < 10 then
print(false)
else
print(true)
end
-- table (global)
tbl = {1, "two", "three"}
print(tbl[2]) -- would print "two" to log file
tbl = {one = 1, two = "two", ...}
print(tbl.one, tbl["one"]) -- would print 1, 1 to the log file
tbl = {}
tbl[1] = Objects["object_name"]:getName()
tbl[2] = 4
tbl[3] = "hello"
tbl[4] = "world"
print(tbl[3] .. " " .. tbl[4]) -- would print "hello world" to the log file
tbl = {}
tbl["x"] = 2
tbl["y"] = 4
print(tbl["x"] * tbl["y"]) -- would print 8 to the log file (2 x 4)
-- etc...