Next
Verb: next
Terminates the command block previously started with For and advances to the next command.
Syntax
next
Example
Terminates the command block started by the For command after the value of "iterationVariable" reaches 10.
defVar --name iterationVariable --type Numeric --value 0
// Performs the loop 10 times.
for --variable ${iterationVariable} --from 1 --to 10 --step 1
logMessage --message "${iterationVariable}" --type "Info"
next
logMessage --message "Execution Finished\r\n" --type "Info"
// Result: Repeats the command block 10 times and displays the message "execution finished".
Remarks
For the command Next to work, you must have a For already created.