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