Continue
提供: AutoHotkey Wiki
実行制御 | GUI表示 | 演算・変数 | メモリ・DLL操作 | 文字列操作 |
キーボード | マウス | シェル | ウィンドウ | ウィンドウグループ
ステータスバー | コントロール | サウンド | ファイル | INIファイル |
レジストリ | 環境変数 | AutoHotkey | その他 | 設定関係 | オブジェクト
Continue[編集]
ループの現在の回の残りの処理をスキップし、次の回に進む。
Continue [, LoopLabel]
AHKL [L59+] LoopLabel を指定した場合は、どのループに対してコマンドの効果を与えるかを示すことになる。
あらかじめ設定したループ名、または数値でのループ階層の両方が指定可能である。
省略時や 1
を指定した場合は、最も内側のループが対象となる。LoopLabel は必ず直書きである必要があり、変数展開や式は利用出来ない。
Remarks[編集]
ループの残りの処理をスキップして次の回に進む。
Related[編集]
Loop, Whileループ, Break, Blocks, Until, Forループ
Example(s)[編集]
; This example displays 5 MsgBoxes, one for each number between 6 and 10.
; Note that in the first 20 iterations of the Loop, the "continue" command
; causes the loop to start over before it reaches the MsgBox line.
Loop, 10 { If A_Index <= 5 Continue MsgBox, %A_Index% }
AHKL 内側のループから外側のループに対して Continue させる。
outer: Loop 3 { x := A_Index Loop 3 { If (x * A_Index = 4) Continue outer; Equivalent to continue 2 or goto continue_outer.
MsgBox %x%,%A_Index% } continue_outer:; For goto.
ErrorLevel := ErrorLevel; Prior to revision 57, labels could not point to the end of a block.
}