📙 Operators
In any expression you can use any of these operators.
🔢 Arithmetic operators
| Name | Description | Example |
|---|---|---|
| + | The plus operator | 5 + 1 OR +2 |
| - | The minus operator | 5 - 1 OR -2 |
| * | The multiplication operator | 3 * 4 |
| / | The division operator | 10 / 2 |
| ^ | The power-of operator | 2 ^ 3 (8) |
| % | The modulo operator (remainder) | 10 % 3 (1) |
☯️ Boolean operators
| Name | Description | Example |
|---|---|---|
| =, == | The equals operator | "Hyrex" == "Hyrex" |
| != | The not equals operator | "Hyrex" != "Studios" (true) |
| ! | The prefix not operator | !("Hyrex" != "Studios") (false) |
| > | The greater than operator | 10 > 5 (true) |
| >= | The greater equals operator | 6 >= 6 (true) |
| < | The less than operator | 4 < 7 (true) |
| <= | The less equals operator | 8 <= 3 (false) |
| && | The AND operator | "Hyrex" == "Studios" && 1 >= 1 (false) |
| || | The OR operator | "Hyrex" == "Studios" || 1 >= 1 (true) |