変数割り当て

Luaの変数割り当てでは、大文字と小文字が区別されます。

Note: CADFEKOEDITFEKOの変数定義では、大文字と小文字が区別されません。
-- Note: All number types are doubles. There are no integers.
print(type(42), type(42.0)) -- prints out "number number"
variable_one = 1 + 2 - 3 -- This will equal zero.
variable_One = "Variables are case sensitive."
a, b = 42, 101 --multiple assignment
a, b = b, a --provides quick value swap
x, y, z = 1, 2, 3, "this value is discarded"
x, y, z, mytext = 1, 2, 3, "this value is discarded"