EXIT
Syntax
The EXIT statement resumes execution at the next statement following the end of the nearest containing loop.EXIT;
Example
Exit within a FOR loop:
FOR loop_counter in 1..10 LOOP
IF some_value != 5 THEN
EXIT; -- skip the rest of this code and stop looping…
END IF;
---- Perform some other tasks…
END LOOP;
--- Execution resumes here after the EXIT is executed.