Continue

Top  Previous  Next

Description


The Continue command ends the current iteration of a While or For loop without executing any remaining commands within the loop, and proceeds to the next iteration of the While or For loop. For more information, see the Flow Control Script Reference.

 

 

Syntax


For myVariable = 1 to 10;
    If (myVariable % 2 == 0);
          Continue;
    End;
    Report myVariable;
End;

 

Output

 

1.000000
3.000000
5.000000
7.000000
9.000000

 

 

Details


The Continue statement can only be used within a For or While loop.

In the case of nested For or While loops, the Continue statement will cause the Mission Plan execution to proceed to the next iteration of the innermost loop only.

 

 

See Also


Break

For

If

While