Boolean operators
Operator | Name | Example |
---|---|---|
! | logical negation operator | case(!(f(x)) |
|| | logical OR operator | case(a || b || f(x)) |
&& | logical AND operator | case(a && f(x)) |
== | equality operator | case(a == b) |
!= | inequality operator | case(a != b) |
Float operators
Operator | Name | Example |
---|---|---|
- | unary minus operator | a = -b |
- | binary minus operator | a = b - c |
+ | plus operator | a = c + b |
* | multiply operator | x = y*f(x) |
/ | division operator | x = 4 / d |
% | modulus operator (remainder) | a = b % 10 |
Float comparison operators
Operator | Name | Example |
---|---|---|
< | less than operator | case(a < b) |
<= | less than or equal operator | case(a <= b) |
> | greater than operator | case(a > b) |
>= | greater than or equal operator | case(a >= b) |
== | equality operator | case(a == b) |
!= | inequality operator | case(a != b) |
String operators
Operator | Name | Example |
---|---|---|
+ | string concatenate | City" + "Engine" |
+ | string-float concatenate | a = "Rule:" + 1 a = 1 + "th Rule" |
String comparison operators
Operator | Name | Example |
---|---|---|
< | less than operator | case(a < b) |
<= | less than or equal operator | case(a <= b) |
> | greater than operator | case(a > b) |
>= | greater than or equal operator | case(a >= b) |
== | equality operator | case(a == b) |
!= | inequality operator | case(a != b) |
Array operators
Operator | Name | Example |
---|---|---|
[ ] | array[index] |