*= Operator

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

Syntax

variable *= expression

Parts

variable
Required numeric variable
expression
Required numeric expression

Remarks

The following two statements are functionally equivalent.

variable *= expression
variable = variable * expression

Examples

Variable

Listing 1
x = 21
x *= 2
After execution
variablevalue
x42

Property

Listing 2
' Change value of property
#obj.value *= 2

See also