yes adding the case statement solves the issue of hitting unwanted code,
but... now you've defined your criteria in two places. How about something
like:
DONE.FLAG = @FALSE
FOR A1 = 1 TO X UNTIL DONE.FLAG
FOR A2 = 1 TO Y UNTIL DONE.FLAG
LOOP
<little twisted logic>
IF G # H THEN DONE.FLAG = @TRUE
UNTIL DONE.FLAG DO
<twisted little logic>
REPEAT
NEXT A2
NEXT A1
David A. Green
(480) 813-1725
DAG Consulting
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Boydell, Stuart
Sent: Thursday, April 19, 2012 3:05 PM
To: U2 Users List
Subject: Re: [U2] EXIT ; EXIT inside a loop
FOR A1 = 1 TO X until G = H
FOR A2 = 1 TO Y until G = H
<little twisted logic>
case G # H
<twisted little logic>
End case
NEXT A2
case G # H
<twisting little logic>
End case
NEXT A1
does that not work for the OPs mise en scène? (see what else I did there
using case instead of if? More of a Volvo than a Ford a little bit boxy, but
quite safe).
________________________________
From: David A. Green
Sent: 20-Apr-12 7:36
To: 'U2 Users List'
Subject: Re: [U2] EXIT ; EXIT inside a loop
I think people are missing the original post. A WHILE or UNTIL on the
FOR...NEXT doesn't work for this scenario. That is why I suggested the
LOOP...UNTIL...DO...REPEAT construct.
David A. Green
(480) 813-1725
DAG Consulting
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users