x:=1
;All of these (silently) fail
IfGreater,x, false, EnvAdd, x, 1
IfEqual,false,%x%, EnvAdd, x, 1
IfEqual,true,x, EnvAdd, x, 1
IfEqual,1,1, EnvAdd, x, 1
If x, EnvAdd, x, 1
If (x), EnvAdd, x, 1
tf:=true
if true, EnvAdd, x, 1
if tf, EnvAdd, x, 1
;If %x%, EnvAdd, x, 1
If 1, EnvAdd, x, 1
If 0, EnvAdd, x, 1
;
;though these succeed
x:=1
IfEqual,true,%x%, EnvAdd, x, 1 ; x is now 2
x:=1
IfEqual,x,%x%, EnvAdd, x, 1 ; x is now 2
AutoHotKey ヘルプの「If/IfEqual/...」ページのステートメントを飾り気のない「if」ステートメントで有効にする方法はありますか?
「コマンド名スタイルを使用する場合、別のコマンドは IF ステートメントと同じ行にのみ表示できます。」