Increment

x++

increases the value of x by 1, returning the old value of x.

Details

Examples

open allclose all

Basic Examples  (1)

Increment the value by one, and return the old value:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (3)

Applications  (1)

Properties & Relations  (4)

Possible Issues  (1)

See Also

PreIncrement  AddTo  Set

Tutorials

Introduced in 1988
(1.0)