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 Until, End 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.
# 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