Control functions

Control functions assist with flow control and the detection and response to error contdtions.