Vanguard Software
Forecasting & Planning Solutions

contents.gifindex.gifprev1.gifnext1.gif

Decrement

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 minus one

Description: Both x-- and --x decrement the value of x by one. However, x-- returns the value of x before it was decremented while --x returns the value after it is decremented.

Examples: var x=5; = x = 5

y=x-- = x = 4 and y = 5

var x=5; = x = 5

y=--x = x = 4 and y = 4

See Also: Increment, Subtract

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Software  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis  |  Expert System Software  |  Website Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2009 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend