Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

Increment

Format: ++x
x
++

Arguments: (node) x Name of an existing node, variable, object property, or list element

Returns: (num) x++ returns the value of x
++x returns the value of x plus one

Description: Both x++ and ++x increment the value of x by one. x++ returns the value of x before it was incremented while ++x returns the value after it is incremented.

Examples: var x=5; = x = 5

y=x++ = x = 6 and y = 5

var x=5; = x = 5

y=++x = x = 6 and y = 6

See Also: Decrement, Add

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend