Operators

< Show List


Math Operators

The following math operators are available:

^exponentiation
*multiplication
/division
modremainder
+addition
-subtraction

Logical Operators

Any non-zero value is true. Logical Operators:

notlogical not

Bitwise Operators

Bitwise operators:

andbitwise and
orbitwise or
xorbitwise exclusive-or

Comparison Operators

Arithmetic Comparison Operators:

<=less than or equal
<>not equal to
>=greater than or equal
=equal
>greater than
<less than

String Comparison Operators:

x$=y$, x$y$, x$<=y$, x$>=y$, x$<>y$

String comparisons; result is 1 if true, 0 if false.


Operator Precedence

Operator Precedence (highest to lowest):

  1. ( )
  2. - {unary_minus}
  3. functions()
  4. ^
  5. * / mod
  6. + -
  7. = < > <= >= <>
  8. not
  9. and
  10. or xor