Skip to main content
Previous sectionNext section

Continue

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

Synopsis

Continue Do
Continue For

Arguments

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

Description

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.

Examples

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
Next
Copy code to clipboard

See Also