07-06-2006 8:46 PM
Experts,
I am in a loop, say the third record out of ten, I have a scenario where I neeed to exit that third instance of the loop so no subsequent processing occurs within that instance of the loop. I say exit. However, I want to loop to the fourth record and let it process thru the loop.
When I say exit it exits the loop all together. Is there a syntax I can use to only quit out of that third record out of ten and then loop at the fourth record? Otherwise it looks like the old reliable set a flag so it does not continue processing within the rest of that occurence of the loop. I have too many nested IFS already within this loop and am trying to avoid another one.
Thank-You.
07-06-2006 8:48 PM
07-06-2006 8:48 PM
07-06-2006 8:54 PM
07-06-2006 8:48 PM
Use continue statement in IF condition or CHECK <condition> statement in the loop.
Regards
Sridhar
07-06-2006 8:49 PM
hi Tom,
Use <b>Case Endcase</b> statements else use <b>Continue</b> statement
07-06-2006 8:49 PM
Try with <b>continue</b>, it will continue processing from the next recrod.
Regds
Manohar
07-06-2006 8:49 PM
07-06-2006 8:53 PM
or replace the IF condition with a CHECK statement.
CHECK condition = true.
*-- these lines will be processed only if the condition is true
Message was edited by: Srinivas Adavi