PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Assignments
>
Built-in
Mathematica
Symbol
Special Forms of Assignment
Tutorials »
|
Increment
AddTo
PreDecrement
Set
See Also »
|
Assignments
More About »
PreIncrement
(++)
++
x
increases the value of
x
by 1, returning the new value of
x
.
MORE INFORMATION
PreIncrement
has attribute
HoldFirst
.
++
x
is equivalent to
x
=
x
+1
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Increment the value by one and return the new value:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Scope
(3)
Applications
(1)
Properties & Relations
(4)
Possible Issues
(1)
SEE ALSO
Increment
AddTo
PreDecrement
Set
TUTORIALS
Special Forms of Assignment
MORE ABOUT
Assignments
New in 1
© 2008 Wolfram Research, Inc.