Keyword: EXIT
The exit keyword is a sequential statement used in a loop to cause execution to jump out of the loop.
An exit statement can only be used in a loop and can include an optional when condition. An exit statement includes—in this order—the reserved word "exit", an optional loop identifier (if no identifier is given, the exit statement is applied to the loop in which the exit statement occurs), and, optionally, the reserved word "when" followed by the condition under which the exit action is to be executed.
Example
for idx in vectors’range loop
apply_vector(vec(idx));
wait for PERIOD;
if done = ‘1’ then
exit;
end if;
end loop;
LRM
8.11
See also