Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new window

For information on migrating to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).


Jumps to FOR or DO WHILE statements and reexecutes test and loop.


Continue Do
Continue For


The Continue Do and Continue For statements do not have any arguments


The Continue Do or Continue For statement is used within the code block following a For or Do While statement. Continue Do or Continue For causes execution to jump back to the For or Do While statement and to evaluate its test condition, and, based on that evaluation, reexecutes the code block loop.


The following example illustrates the use of the Continue statement:

For i = 1 to 10
  If i = 5 Then
  Continue For
  Println i
  End If
Copy code to clipboard

See Also

FeedbackOpens in a new window