Lua 6
Lua 6
Arithmetic Operators
Relational Operators
Logical Operators
Misc Operators
This tutorial will explain the arithmetic, relational, logical, and other
miscellaneous operators one by one.
Arithmetic Operators
Following table shows all the arithmetic operators supported by Lua language.
Assume variable A holds 10 and variable B holds 20 then −
Show Examples
Show Examples
Show Examples
Show Examples
Here, operators with the highest precedence appear at the top of the table, those
with the lowest appear at the bottom. Within an expression, higher precedence
operators will be evaluated first.
Show Examples