Break to end of loop

Command groupFlag affectedReversibleExecute on clientPlatform(s)
ConstructsNONOYESAll

Syntax

Break to end of loop

Description

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.

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