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 を使用するときには、それぞれが必須です。