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

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

Decrement

FilledSmallSquare x-- decreases the value of x by 1, returning the old value of x.

FilledSmallSquare Decrement has attribute HoldFirst.

FilledSmallSquare See Section 2.5.4.

FilledSmallSquare See also: PreDecrement, SubtractFrom, Set.

FilledSmallSquare New in Version 1.

Further Examples