learn lua (WIP)
resources:
§ KEYWORDS
DECLARACTION
local function
LOGIC
and or not
CONTROL
for in repeat until while break
do if else elseif then return
end
VALUE
true false nil
§ tyles and values
basic types
- nil
- type of a single value, non-exist, anything undeclared, or effectively “deleted”
- boolean
- 2 values
true
andfalse
. conditionals considerfalse
andnil
to befalse
and anything else to betrue
. nil is false, 0 is true. - number
- real numbers, double-precision floating point. There is no integer type in lua. lua can represent any long integer without rounding issues. Lua can be compiled to use other types for numbers.
4 0.4 4.57e-3 0.3e12 5e+20
string
userdata
function
thread
table