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