Subroutines
Last updated
Last updated
There are two main type of sub routines in MIP. 1. Sub routines that are imported/exported 2. Utility sub routines that only resides in the script or module they are created. These are named using an underscore in the beginning of the sub routine name i.e. sub _a_utility_sub
A template for sub routines are found in the .
The sub routine consists of four sections:
A documentation part with a mandatory header:
Initilization of parameters:
Checking the supplied parameters:
The main part of the sub routine that actually does something.
Finally always end with a return statement