End While
Verb: endWhile
Terminates a command block started by the While command.
Syntax
endWhile
Example
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"
endWhile
Remarks
A command block starting with While always ends with End While. And End While cannot be used without the While command.