phoenix_me
Member
I want to skip the code execution in certain cases within DO WHILE loop.
I have a 'DO WHILE NOT QUERY-OFF-END' loop, inside this loop there is another 'IF .... THEN DO' loop, inside this loop there is IF condition and if it's TRUE then I would like to skip the execution of the rest of the code beginning from first comment and start processing next (GET NEXT) result from query.
Would such piece of code will do code skipping as described?
Code:
DO WHILE NOT QUERY-OFF-END('NameOfQuery'):
code to execute
code to execute
IF .... THEN DO:
code to execute
code to execute
IF ... THEN GET NEXT NameOfQuery. /* if TRUE then skip the rest of the code and process next query result */
code to skip
code to skip
END.
code to skip
code to skip
GET NEXT NameOfQuery.
END. /* end skip */
Would such piece of code will do code skipping as described?