EnvMult - Syntax & Usage | AutoHotkey

AutoHotkey

EnvMult

Sets a variable to itself times the given value.

Deprecated: This command is not recommended for use in new scripts. Use Var := Var * Value or Var *= Value instead.

EnvMult, Var, Value

Parameters

Var

The name of the variable upon which to operate.

Value

Any integer, floating point number, or expression.

Remarks

This command is equivalent to the shorthand style: Var *= Value.

If either Var or Value is blank or does not start with a number, it is considered to be 0 for the purpose of the calculation (except when used internally in an expression such as Var := X *= Y).

If either Var or Value contains a decimal point, the end result will be a floating point number in the format set by SetFormat.

Related

EnvAdd, EnvSub, EnvDiv, SetFormat, Expressions, If var is [not] type, SetEnv, bitwise operations (Transform)

Example

EnvMult, MyCount, 2 
MyCount *= 2  ; Equivalent to above