This chapter examined how decisions can be made in a program. It explored the If statement, and its variations, in considerable detail. This chapter also showed how the Select Case statement can simplify code when complex decisions must be made. It also showed how to use enumerations to make code more easily understood . Finally, this chapter discussed the AndAlso and OrElse operators and how they can provide a slight boost in program efficiency.
Decision making is a crucial element in virtually all computer programs. You should experiment with some programs of your own design, using the concepts discussed in this chapter, before moving on to the next chapter. Working the exercises at the end of the chapter should also prove useful.