a < b
)a
is less than b
, the result is true
, otherwise, false
.a > b
)a
is greater than b
, the result is true
, otherwise, false
.a <= b
)a
is less than or equal to b
, the result is true
, otherwise, false
.a >= b
)a
is greater than or equal to b
, the result is true
, otherwise, false
.a == b
)a
is exactly equal to b
, the result is true
, otherwise, false
.a ~= b
)a
is anything but b
, the result is true
, otherwise, false
.true
by Lua, which is any value that isn't false
or nil
.a and b
where a & b are both evaluated as expressions.a
is truthy, b
is the result of the operation, otherwise it is the result of a
.a or b
where a & b are both evaluated as expressions.a
is truthy, result is a
, otherwise b
.not a
a
, any expression or value that results in true, the value is flipped to false, and vice versa.and
operator is nil
because of the a
operand resulting in false
, the or
operator comes in because the result of the and
operation is the a
operand to or
, so the result looks like nil or 'Y is greater!'
. In plain English, all that's happening here is: "If my x variable is bigger than our y variable, give me back a string that says X is greater, otherwise, give me a string that says Y is greater."a + b
a - b
a * b
a / b
a ^ b
-a
a .. b
pairs
iterator: