*= Operator

Multiplies the value of a variable by the value of an expression, then changes the variable to the result.

Syntax

variable *= expression

Parts

variable
A numeric variable or property.
expression
A numeric expression.

Instructions

The two statements that follow operate the same.

variable *= expression
variable = variable * expression

Examples

x = 21
x *= 2
After execution
variablevalue
x42

See also