Programs are written to perform actions. This chapter takes a look at several ways to control these actions. First we will look at functions, which allow you to group sets of actions together and run them as a block. Next we'll discuss conditional statements, which let you specify conditions that must be met for an action to take place. Finally we will examine the various types of loops, which allow you to easily repeat actions.