Well, I would just use control variables. Six additional lines, but hey,
close enough ...
tloop.flag = @true
FOR T=1 TO 10 while tloop.flag
qloop.flag = @true
FOR Q=1 TO 6 while qloop.flag
xloop.flag = @true
FOR X=1 TO 9 while xloop.flag
xloop.flag = @false
qloop.flag = @false
continue
NEXT X
NEXT Q
NEXT T
> -----Original Message-----
> From: George Gallen [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 10, 2005 10:33 AM
> To: Ardent List
> Subject: [U2] How to "exit" out mulitple loops?
>
> For instance.
>
> FOR T=1 TO 10
> FOR Q=1 TO 6
> FOR X=1 TO 9
> IF CONDITION THEN EXIT ; EXIT
> OR
> IF CONDITION THEN CONTINUE T
> NEXT X
> NEXT Q
> NEXT T
>
> 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.
>
> This is with UV10
>
> yes, I could use a line label, but then I'd almost be
> forced into a goto. Please no wars on this
> or anything that takes more than 5 additional lines
>
> George
>
> George Gallen
> Senior Programmer/Analyst
> Accounting/Data Division
> [EMAIL PROTECTED]
> ph:856.848.1000 Ext 220
>
> SLACK Incorporated - An innovative information, education and
> management
> company
> http://www.slackinc.com
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/