8.8.8 *= operator (multiplication) (assign to a variable the product of a variable and an expression)
- Purpose
-
Multiplies a variable by an expression, and assigns the result to the variable.
- Syntax
Result *= Number
- Arguments
-
- Result
-
Specify a variable for storing the multiplication result.
- Number
-
Write any numerical expression.
- Description
-
The *= operator multiplies the value of the variable Result by the value of the expression Number, and assigns the product to the variable Result.
Empty values are handled as zero. If Result is an Empty value or undefined, or if Number is an Empty value, 0 is assigned to Result.
- Example
' This code stores 35 in variable result1. result1 = 7 result1 *= 5
- JP1/Script version
-
Supported from JP1/Script 06-51.