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.

See Also

  • Begin Do-While
  • Case
  • Continue
  • Else
  • Else If
  • End Case
  • End Do-While
  • End For Each
  • End If
  • End While
  • Execute Subroutines
  • For
  • For Each
  • Go to
  • Go to If
  • If
  • Insert Label
  • Interrupt Loop
  • Otherwise
  • Return from Subroutine
  • Run Subroutine
  • Run Subroutine If
  • Then
  • When
  • While