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 /

AddTo

FilledSmallSquare x += dx adds dx to x and returns the new value of x.

FilledSmallSquare AddTo has the attribute HoldFirst.

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

FilledSmallSquare See Section 2.5.4.

FilledSmallSquare See also: Increment, PreIncrement, Set, PrependTo.

FilledSmallSquare New in Version 1.

Further Examples