mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
42 lines
969 B
Markdown
42 lines
969 B
Markdown
# Operators
|
|
|
|
The following table lists the recognized operators, and their uses.
|
|
|
|
| Symbol | Description |
|
|
| --- | --- |
|
|
| `+` | Add. |
|
|
| `-` | Subtract. |
|
|
| `*` | Multiply. |
|
|
| `/` | Divide. |
|
|
| `%` | Modulo. |
|
|
| `=` | Assign. |
|
|
| `+=` | Add Assign. |
|
|
| `-=` | Subtract Assign. |
|
|
| `*=` | Multiply Assign. |
|
|
| `/=` | Divide Assign. |
|
|
| `%=` | Modulo Assign. |
|
|
| `++` | Increment. Not yet implemented. |
|
|
| `--` | Decrement. Not yet implemented. |
|
|
| `==` | Compare Equal. |
|
|
| `!=` | Compare Not Equal. |
|
|
| `<` | Compare Less. |
|
|
| `<=` | Compare Less Equal. |
|
|
| `>` | Compare Greater. |
|
|
| `>=` | Compare Greater Equal. |
|
|
| `(` `)` | Parenthesis. |
|
|
| `[` `]` | Brackets. |
|
|
| `{` `}` | Braces. |
|
|
| `&&` | And. |
|
|
| `\|\|` | Or. |
|
|
| `!` | Not. |
|
|
| `?` `:` | Ternary. |
|
|
| `?` | Question. Not used. |
|
|
| `:` | Colon. |
|
|
| `.` | Dot. Not yet implemented. |
|
|
| `..` | Concatenate. |
|
|
| `...` | Rest. Not yet implemented. |
|
|
| `&` | Ampersand. Not used. |
|
|
| `\|` | Pipe. Not used. |
|
|
|
|
|