Progress Quiz 22 to 24

I will ignore Qn 22 as it is another include file. Qn 23 is simple.
Qns 24: We have the code below. What happens when the <condition> becomes true? What block is left and how can we force to leave the other block?

For EACH table1:

For EACH table2:

/*Do something…*/

IF condition THEN

LEAVE.

END.

END.

Ans: When the condition becomes true, the table2 block is left, but proceeds with the next iteration of the table1 and the loop continues till all the records in table1 have been read.
 
Top