The lua programming language provides a series of operators that allow values and variables to be compared, evaluated or manipulated. These operators can combined together with values and variables to make expressions. The operators may take unary, dyadic or ternary form, depending on the number of operands that they utilize.
As within most other programming languages, the equals sign acts as a dyadic operator, assigning the value of the expression of the right hand operand to the variable named by the left operand.
- arithmetic operators
The lua programming language provides a standard set of arithmetic operators for manipulating integer and floating point numbers.
- string operators
- logical operators
The logical operators are used to perform boolean operations, returning either true or false.
- bitwise operators
The bitwise operators are used to perform manipulation of binary numbers.
- comparative operators
Regular expression operatorsEdit
- regular expression operators
- numeric operator
- relationship operators
- reference operator
- dereference operator
- arrow operator
Combination assignment operatorsEdit
The lua programming language does not support the combination assignment operators.
- ternary operator