LANGUAGE » LUA

Operators

Arithmetic

OperatorDescription
+Addition
-Subtraction
*Multiplication
/Float division
//Floor division
%Modulo
^Exponentiation
-Unary minus

Relational

OperatorMeaning
==Equals
~=Not equals
>Greater than
<Less than
>=Greater than or equal to
<=Less than or equal to

Logical

OperatorDescription
andAND
orOR
notNOT

Bitwise

OperatorDescription
&Bitwise AND
|Bitwise OR
~Bitwise exclusive OR
>>Right shift
<<Left shift
~Unary bitwise NOT