Chapter 8. WORKING WITH DATA

Now that you know Visual Basic's mathematical and decision operators, you can put those operators to use in this chapter. The comparison operators enable you to set up complex decision-making and repetition statements in Visual Basic. One of the advantages that the computer offers to us is that the computer will repeat a task over and over without getting bored. In this chapter, you'll learn how to write programs that repeat sections of code.

The highlights of this chapter include the following:

  • Use the If statement to make decisions.

  • The Else branch enables you to write more powerful If statements.

  • The Select Case statement is Visual Basic's compound If statement.

  • Visual Basic supports several kinds of Do loops.

  • The ...

Get Absolute Beginner's Guide to Programming, Second Edition 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.