End For Each
Verb: endFor
Terminates a command block started by the For Each command.
Syntax
endFor
Example
Loop started by the For Each command displays a message multiple times and End For Each terminates the command block.
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".
Remarks
End For Each can only be used with For Each.