Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Operators

Numeric expressions are evaluated similarly to BASIC V2 or any other BASIC dialects, with some minor incompatibilities. The currently supported operators are:

Arithmetic operators

  • * (multiplication)
  • / (division)
  • + (addition)
  • - (subtraction)

Relational operators

  • = (equal to)
  • <> (not equal to)
  • > (greater than)
  • >= (greater than or equal to)
  • < (less than)
  • <= (less than or equal to)

Conditional operators

  • AND
  • OR

Bitwise operators

  • & (and)
  • | (or)
  • ^ (exclusive or)

Note that you are not allowed to use the AND or OR keywords for bitwise operations as in BASIC V2.

Unary operators

  • @ (address of)