Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The inclusion of conditions in your programs is the heart of all advanced programming languages. In the previous section, you actually included some statements for performing these types of tasks and you may have noticed IF statements and loops. It is in this section that we now illustrate how to construct them by providing you with a step-by-step guide. Since programs are written to handle a number of different situations, the manner in which different conditions are detected and dealt with is the biggest part of program control. This section will provide you with details on the following topics:
Program control
Various types of IF logic structures
CASE expressions
Various types of looping structures