End While

Verb: endWhile

Terminates a command block started by the While command.




The While command repeats the command block as long as the value of "counter" is less than 5. When the condition is no longer satisfied, the End While command ends the block.

defVar --name counter --type Numeric --value 0
// Repeat the command block as long as "counter" is less than 5. At the end, the command block is closed.
while --left "${counter}" --operator "Less_Than" --right 5
	incrementVar --number ${counter}
	logMessage --message "Repetition Number: ${counter}" --type "Info"


A command block starting with While always ends with End While. And End While cannot be used without the While command.

See Also

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