Break to end of loop

Command group Flag affected Reversible Execute on client Platform(s)
Constructs NO NO YES All


Break to end of loop


This command terminates a Repeat, While or For loop, passing control to the command following the UntilEnd While or End For command. An If command is usually placed before the Break to end of loop to determine the condition under which a break occurs.


; loop until user replies yes to yes/no message or lCount=100
While lCount<-100
  Yes/No message {Break to end of loop ?}
  If flag true
    Break to end of loop
  End If
  Calculate lCount as lCount+1
End While