CONTINUE in IF statement.
Posted: Wed Apr 18, 2018 8:37 pm
Hi -
Please see the following code:
In that below code is new code:
rest is existing code. My question is if I don't write CONTINUE, the control will still go to next executable statement. Is that correct? I have tested it but want to confirm if I got it correct.
One more thing I want to ask and that is in the existing code there are nested IF statements, why they have not used CONTINUE? Deos not that make a difference?
Please see the following code:
Code: Select all
IF TB-ABCDE-NORESP AND WS-LTYPE-PART
AND TB-ABCDE-ACTIVE
IF (WS-IMSSEG-NORESP
AND OR-CA-CODE = 'BO')
OR (OEMJCARRI = 'BO'
OR OEMCARRI = 'BO')
IF TB-FLG AND
(WS-NO-H-SW = 'Y')
CONTINUE
..
Code: Select all
IF TB-FLG AND
(WS-NO-H-SW = 'Y')
CONTINUE
One more thing I want to ask and that is in the existing code there are nested IF statements, why they have not used CONTINUE? Deos not that make a difference?