This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Assignments /

PreIncrement

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

FilledSmallSquare PreIncrement has attribute HoldFirst.

FilledSmallSquare ++x is equivalent to x=x+1.

FilledSmallSquare See Section 2.5.4.

FilledSmallSquare See also: Increment, AddTo, Set.

FilledSmallSquare New in Version 1.

Further Examples