CYCLE statement

Standard: F77 F90 F95 F2003 F2008 F2018 Example program


<Syntax>

CYCLE [ do-construct-name ]

The CYCLE statement may only appear within a DO construct.

<Semantics>

The CYCLE statement immediately starts the next iteration of the DO construct. If do-construct-name appears, it is that DO construct whose next iteration is begun (this terminates any DO nested inside that construct), otherwise it is the innermost that the CYCLE statement appears in which is affected.

If there is no next iteration (because the current iteration is the last, or the WHILE condition is not satisfied), the DO construct will be terminated.

<Related>

CONTINUE statement, DO construct, DO WHILE statement, END DO statement, EXIT statement, GO TO statement