Operators
The operators have the same function as i c, with some limitations. All
operators are not implemented. Some operators (+,=,==) can also operate on
string variables. Precedence of operators is similar to c.
| Operator | Description | Datatypes
|
| + | plus | int, float, string
|
| - | minus | int, float
|
| * | times | int, float
|
| / | divide | int, float
|
| ++ | increment, postfix only. | int, float
|
| -- | decrement, postfix only | int, float
|
| >> | bits right-shifted | int
|
| << | bits left-shifted | int
|
| < | less than | int, float
|
| > | greater than | int, float
|
| <= | less equal | int, float
|
| >= | greater equal | int, float
|
| == | equal | int, float, string
|
| != | not equal | int, float, string
|
| & | bitwise and | int
|
| | | bitwise or | int
|
| && | logical and | int
|
| || | logical or | int
|
| ! | logical not | int
|
| = | assign | int, float, string
|
| += | add and assign | int, float
|
| -= | minus and assign | int, float
|
| &= | logical and and assign | int
|
| |= | logical or and assign | int
|