ABSTRACT

In code we have written and executed so far, all of the commands have been executed in sequential order. More powerful programs and models will require the ability for the code to make decisions about which parts of the code should be executed, and about some of the mechanisms to control, which are presented in this chapter. Specifically, we are going to teach you how to select one of several possible program paths—distinct blocks of code to execute—based on a condition; an evaluation of a variable against some test state.