Simple types of operators

Boolean operators

OperatorNameExample

!

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

OperatorNameExample

-

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

OperatorNameExample

<

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

OperatorNameExample

+

string concatenate

City" + "Engine"

+

string-float concatenate

a = "Rule:" + 1

a = 1 + "th Rule"

String comparison operators

OperatorNameExample

<

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

OperatorNameExample

[ ]

item operator

array[index]