Logic.lua Page
Lua uses if , then , elseif , else , and end to manage control flow.
Logical operators ( and , or , not ) allow for complex evaluations. logic.lua
Game logic in scripting language vs. internal engine : r/gamedev Lua uses if , then , elseif ,
and returns the first argument if it is falsy; otherwise, it returns the second. Lua uses if
or returns the first argument if it is truthy; otherwise, it returns the second.
Lua uses standard mathematical symbols for comparison, with one notable exception for "not equal". == (equal to) ~= (not equal to) < , > , <= , >= (less/greater than comparisons) 3. Combining Logic