Operators > -= (negation assignment)

-= (negation assignment)

Syntax

expression1 -= expression2

Arguments

expression1,expression2 Integers, floating-point numbers, or strings.

Description

Operator (compound assignment); assigns expression1 the value of expression1 - expression2.

Player

Flash 4 or later.

Example

The following illustrates using the -= operator with variables and numbers:

x -= y is the same as x = x - y

If x = 5 and y = 10 then

x -= 10 returns -5