Terminating Functions

When a function is called, it is normally executed until the end of the function is reached (the final END statement). There are two methods of terminating the function prematurely: the RETURN and the EXIT statements.