Tuesday, March 3, 2009

Labeling Loops

Begin
/*--------------------------------------------*/
<< l_Outer >>

For v_1Ctr In 1..5 Loop
...
/*-----------------------------------------*/
<< l_Inner >>

For v_2Ctr In 1..20 Loop
...
If v_1Ctr = 4
Then Exit l_Outer; -- Exits Both Loops
End If;

End Loop l_Inner;
/*-----------------------------------------*/
End Loop l_Outer;
/*--------------------------------------------*/

End;
/

No comments:

Post a Comment