End For Each

verb: endFor

それぞれコマンドで開始したコマンド・ブロックを終了します。

構文

endFor

それぞれコマンドで開始したループでメッセージを複数回表示し、End For Each でコマンド・ブロックを終了します。

defVar --name collection --type List --innertype Numeric --value "[1,2,3,4,5]"
defVar --name iterator --type Numeric
foreach --collection "${collection}" --variable "${iterator}" --distinct
	logMessage --message "Numeric repetition: ${iterator}" --type "Info"
endFor
logMessage --message "End foreach" --type "Info"
// Performs 5 repetitions and ends with "End foreach".

注釈

End For Each を使用するときには、それぞれが必須です。

以下も参照してください。

  • Do-While の開始
  • Case
  • continue
  • Else
  • ELSE IF
  • End Case
  • Do-While の終了
  • End If
  • End While
  • サブルーチンの実行
  • For
  • For Each
  • 以下の場所に移動してください。
  • 条件に一致する場合進む
  • If
  • ラベルの挿入
  • ループの中断
  • 次へ
  • Otherwise
  • サブルーチンから戻る
  • サブルーチンの実行
  • 条件に一致する場合サブルーチンを実行
  • Then
  • When
  • While