increases the value of x by 1, returning the new value of x.



open allclose all

Basic Examples  (1)

Increment the value by 1 and return the new value:

Scope  (3)

Increment a numerical value:

Increment a symbolic value:

Increment all values in a list:

Applications  (1)

Find the first integer with a certain property:

Properties & Relations  (4)

Increment and PreIncrement differ in the return value of the operation:

PreIncrement is a short form of this assignment:

PreIncrement is a special case of AddTo:

Decrement and PreDecrement are closely related operations:

Possible Issues  (1)

A variable to be incremented must have an initial value:

Introduced in 1988