Share via


Subtraction Assignment Operator (-=) (Windows Scripting - JScript)

 

Subtracts the value of an expression from the value of a variable and assigns the result to the variable.

Syntax

result -= expression

Arguments

  • result
    Any numeric variable.

  • expression
    Any numeric expression.

Remarks

Using the -= operator is exactly the same as doing the following:

result = result – expression

Requirements

Version 1

See Also

Subtraction Operator (-) (Windows Scripting - JScript)
Operator Precedence (Windows Scripting - JScript)
Operator Summary (Windows Scripting - JScript)