RulesIfWithExitOn this pageUse EXIT WHEN instead of an IF statement to exit from a loopTo improve the code readability always use EXIT WHEN instead of an IF statement to exit from a loop. Noncompliant Code Example if condition1 then exit;end if; Compliant Solution exit when condition1;