Chapter 7. Controlling the Flow of Your Program

In this chapter

Understanding If Statements

Using Select Case

Structuring Your Code Logically

Working with Loops

Exercise: The Pop-Up Eliminator

From Here . . .

Two of the fundamental strengths of computers are their capabilities to execute instructions quickly and to make decisions precisely. In this chapter, you will learn how to take advantage of these capabilities in two very important ways: through the use of decision-making techniques and the use of loops, which allow portions of code to run a controlled number of times.

In the last chapter, you learned about a class of code statements known as assignment statements, which are used to set and modify the values of variables. Another group of statements ...

Get Special Edition Using Microsoft® Visual Basic® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.