"Wilt, Charles" wrote:
...
You could certainly do it, but you'd have to short-circuit the for loop
with LEAVE since the for loop really isn't the controlling factor.
Plus you'd have to code to set W@GOOD to 'NO' if you make it all the way
through the loop.  The result is ugly, and not clear as to why your are
doing what you are doing.
...

It's interesting to consider the possible solutions if there were 50
possible values for K@FAC rather than just 3.  Using a nested loop would
get nasty.  Terri's current solution would possibly be better, since
it's flat, even though it's kind of ugly.  But a regular loop over the
values would be best (imho, best even with 3 possible values).

W@GOOD = *blank;
i = 1;
dow W@GOOD = *blank;
   K@FAC = candidate(i);
   exsr $100;
   i = i + 1;
enddo;
if W@GOOD = *blank;
   W@GOOD = 'NO';
endif;


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.