INC

The INC command will increment a variable by a specified Value or by a default of 1.

  Syntax
INC Variable, Value
  Parameters
Variable
Integer
Specify the variable that stores the value.
Value
Integer
A value between 0 and 2415919103.

  Returns

This command does not return a value.

  Description

Both integer and real variables can be incremented by either an integer or real value, in addition to array and data type elements.

  Example Code
A=1
PRINT A
INC A
PRINT A
INC A,2
PRINT A
WAIT KEY
  See also

CORE Commands Menu
Index