mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
969 B
969 B
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. |