Break to end of loop

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

Syntax

Break to end of loop

Description

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.

You cannot use the Break to end of loop command to break out of a Switch construct. In this case, you must use the Break to end of switch command.

Example

# 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