<unsubscribe>

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin King
Sent: Monday, January 10, 2005 12:46 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] How to "exit" out mulitple loops?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of George Gallen
>So the point being if a condition occurs, I want to stop
>   the x and q loops entirely, and continue on with the
>   next t iteration.

How about:

TRUE = (1 EQ 1)   ;* If not otherwise defined
FALSE = NOT(TRUE) ;* If not otherwise defined
*
DONE = FALSE
FOR T=1 TO 10
        FOR Q=1 TO 6 UNTIL DONE
                FOR X=1 TO 9 UNTIL DONE 
                        IF CONDITION THEN DONE = TRUE
                NEXT X
        NEXT Q
NEXT T

No extra lines (with the exception of TRUE and FALSE); just a couple
of UNTILs.

-Kevin
[EMAIL PROTECTED]
http://www.PrecisOnline.com
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to