Subtraction Assignment (-=)

The -= operator used after the LET keyword, assigns a variable by subtracting the current variable value to a numeric expression.

Syntax

variable -= expr
Important:

This operator cannot be used as an element of an expression, it is only allowed as assignment operator with the LET instruction.

Usage

The -= assignment operator subtracts the right-hand numeric expression to the value of the left-hand variable and assigns the result to the variable.

Example

MAIN
  DEFINE x INTEGER
  LET x = 500
  LET x -= 100
END MAIN