The continue statement moves the control to the starting position of the nearest do, for, or while loop that encloses this statement. Typically, the continue statement is used to return the control to the loop starting position from a deep nesting level.
continue;
The following shows the rules to determine where the next repetition starts for the do, for, or while statement when the continue statement is encountered.
You should not specify more than 255 continue statements in a loop structure.
for (count=1;count<=10;count=count+1)
if (count < 5)
continue;
endif;
...
next;
In the above example, the codes following the continue statement are skipped until the value of count reaches 5.