Use EXIT WHEN instead of an IF statement to exit from a loop
ZPA rule for PL/SQL and Oracle SQL · IfWithExit
To improve the code readability always use EXIT WHEN instead of an IF statement to exit from a loop.
Examples
if condition1 then
exit;
end if;
exit when condition1;