Command integeroperator

The command integeroperator is used to increment or decrement a value contained in a variable.

Parameters

  1. operator [string]
    Increase (++) or decrease (--).
  2. variablesource [integer]
    Number that will be used in the operation.

Example


In the example above number 10 will be incremented by a value of 1 (to 11) and its value stored in the variable sGreaterNumber.

The new value of the variable iNumber, 11 will be decremented by a value of 1 (to 10) and its value stored in the variable sLowerNumber.

To display the values on the display, you will need to convert them to stringvariable with the command inttostring.