Quote:
To assign the result of an expression to a variable, use the := operator as in this example:
NetPrice := Price * (1 - Discount/100)
Quote:
If a variable reference such as %Var% appears in an expression, whatever it contains is assumed to be the name or partial name of another variable (if there is no such variable, %Var% resolves to a blank string). This is most commonly used to reference array elements such as the following example:
Var := MyArray%A_Index% + 100
Such a reference should not resolve to an environment variable, the clipboard, or any reserved/read-only variable. If it does, it is treated as an empty string.
Quote:
By preceding any parameter with "% ", it becomes an expression. In the following example, math is performed, an array element is accessed, and a function is called. All of these items are concatenated via the "." operator to form a single string displayed by MsgBox: MsgBox % "New width for object #" . A_Index . " is: " . RestrictWidth(ObjectWidth%A_Index% * ScalingFactor)