May 2017
Intermediate to advanced
416 pages
21h 33m
English
The if-then conditional statement evaluates an expression and executes a block of code if true:
if status.body then --Do something end
Lua also supports an else-if conditional statement with the keyword elseif:
if status.body then --Do something elseif --Do something else end
If-then statements must end with the terminator keyword end.
Read now
Unlock full access