TRY ... FINALLY ... END
The commands between FINALLY and END it is ensued that will be executed even the code between TRY and FINALLY uses EXIT, BREAK or BREAKALL. e.g.
try print(1); exit; print(2); finally print('Always comes here'); end;
The above code will print:
1 Always comes here
Blocks of TRY...FINALLY can be nested.
See also EXIT, BREAK, BREAKALL.
Go Back