>DO WHILE <condition1> > <a long sequence1 of commands> > IF <condition2> > EXIT > ENDIF > <a long sequence2 of commands> >ENDDO > >* implement this into VFP >
lContinue = <Condition1> DO WHILE lContinue <a long sequence1 of commands> lContinue = !<Condition2> IF lContinue <a long sequence2 of commands> lContinue = <Condition1> ENDIF ENDDO>
>DO WHILE <condition1> > <a long sequence1 of commands> > DO WHILE <condition2> > <a long sequence2 of commands> > IF <condition3> > LOOP 1 > ENDIF > <a long sequence3 of commands> > ENDDO > <a long sequence4 of commands> >ENDDO && LOOP 1 go here
DO WHILE <condition1> <a long sequence1 of commands> DO WHILE <condition2> <a long sequence2 of commands> IF !<condition3> <a long sequence3 of commands> && Asuming <Condition3> does not change here ENDIF ENDDO IF !<condition3> <a long sequence4 of commands> ENDIF ENDDOThis is how you should do it when still using the old JSP tactics, however if the Long sequences are put into a function or reordered it can be way more efficient (and of course readable).