Warning

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

INC

Syntax:

inc <byte or int variable>

The INC command increments the value of a byte or integer variable by 1. This is considerably faster than doing LET x = x + 1. Example:

let myVar = 10
inc myVar
print myVar

The above will output 11.

Note: the INC command does not work on floats.