Loops can be given names and an EXIT or CYCLE statement can be made to refer to a particular loop.
outa: DO inna: DO ... IF (a.GT.b) EXIT outa ... IF (a.EQ.b) CYCLE outa ... IF (c.GT.d) EXIT inna ... END DO inna ... END DO outa
The (optional) name following the EXIT or CYCLE highlights which loop the statement refers to.
Loop names can only be used once per program unit.
For more information, click here