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


AddTo 
x+=dx
adds dx to x and returns the new value of x.
Examples
open all close allBasic Examples (1)
Scope (4)
The first argument to AddTo need not be a symbol:
Properties & Relations (4)
AddTo is a short form of this assignment:
PreIncrement is a special case of AddTo:
SubtractFrom is closely related:
A related operation for lists is AppendTo:
See Also
Increment PreIncrement Set PrependTo Plus SubtractFrom TimesBy ApplyTo
Tech Notes
Related Guides
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), AddTo, Wolfram Language function, https://reference.wolfram.com/language/ref/AddTo.html.
CMS
Wolfram Language. 1988. "AddTo." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AddTo.html.
APA
Wolfram Language. (1988). AddTo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AddTo.html
BibTeX
@misc{reference.wolfram_2025_addto, author="Wolfram Research", title="{AddTo}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/AddTo.html}", note=[Accessed: 10-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_addto, organization={Wolfram Research}, title={AddTo}, year={1988}, url={https://reference.wolfram.com/language/ref/AddTo.html}, note=[Accessed: 10-August-2025]}