DocumentationMathematicaBuilt-in FunctionsProgrammingAssignments
AddTo
x += dx adds dx to x and returns the new value of x.
AddTo has the attribute HoldFirst. x += dx is equivalent to x = x + dx. See Section 2.5.4. See also: Increment, PreIncrement, Set, PrependTo. New in Version 1.
Further Examples