---
url: >-
  /statelake/scripting-reference/functions-and-procedures/program-control-functions.md
---

# Program Control Functions

You can modify the program flow through the use of these functions.

Modifying program flow is essential when mapping **data definitions** that have differing structures.

For example, if the source data definition is a list of order lines, and this needs to be mapped to a data definition with order header/order line structure, you will need to call **ProcessMasterRecord** when you need to create a new header record in the destination.

The following **Program Control** functions are available.
