;Storing & Retrieving values in/from variables
; 1. traditional
MyVar = "123"
MsgBox %MyVar%
; 2. expression
MyVar := "123"
MsgBox %MyVar%
MsgBox % MyVar
; In the MsgBox line above, a percent sign and a space is used to change the parameter from traditional to expression mode.
; This is necessary because the traditional method is used by default by all commands (except where otherwise documented).
; However, certain parameters of some commands are documented as accepting expressions, in which case the leading percent sign
; is permitted but not necessary. For example, all of the following are effectively identical because Sleep's first parameter is expression-capable:
MillisecondsToWait := 1000
Sleep MillisecondsToWait
Sleep %MillisecondsToWait%
Sleep % MillisecondsToWait
MyVar := "She said, ""An apple a day."""
MsgBox % MyVar