2020-06-21 18:03:45 +02:00
|
|
|
Operators
|
|
|
|
=========
|
|
|
|
|
|
|
|
{{#include ../links.md}}
|
|
|
|
|
2020-06-22 16:02:49 +02:00
|
|
|
| Operator | Description | Binary? |
|
|
|
|
| :---------------: | ------------------------------ | :-----: |
|
|
|
|
| `+` | Add | Yes |
|
|
|
|
| `-` | Subtract, Minus | Yes/No |
|
|
|
|
| `*` | Multiply | Yes |
|
|
|
|
| `/` | Divide | Yes |
|
|
|
|
| `%` | Modulo | Yes |
|
|
|
|
| `~` | Power | Yes |
|
|
|
|
| `>>` | Right bit-shift | Yes |
|
|
|
|
| `<<` | Left bit-shift | Yes |
|
|
|
|
| `&` | Bit-wise _And_, Boolean _And_ | Yes |
|
|
|
|
| <code>\|</code> | Bit-wise _Or_, Boolean _Or_ | Yes |
|
|
|
|
| `^` | Bit-wise _Xor_ | Yes |
|
|
|
|
| `==` | Equals to | Yes |
|
|
|
|
| `~=` | Not equals to | Yes |
|
|
|
|
| `>` | Greater than | Yes |
|
|
|
|
| `>=` | Greater than or equals to | Yes |
|
|
|
|
| `<` | Less than | Yes |
|
|
|
|
| `<=` | Less than or equals to | Yes |
|
|
|
|
| `>=` | Greater than or equals to | Yes |
|
|
|
|
| `&&` | Boolean _And_ (short-circuits) | Yes |
|
|
|
|
| <code>\|\|</code> | Boolean _Or_ (short-circuits) | Yes |
|
|
|
|
| `!` | Boolean _Not_ | No |
|
|
|
|
| `[` .. `]` | Indexing | Yes |
|
|
|
|
| `.` | Property access, Method call | Yes |
|