Chapter 7. Making Decisions
You learned Visual Basic's mathematical operators in Hour 5, "Putting Code into Visual Basic," but Visual Basic supports several more operators, as you'll learn in this lesson. The operators described here are known as comparison operators because they compare data and determine the results of the comparison. By using comparison operators, you can write your programs so that they make certain runtime decisions based on the comparison results.
The highlights of this hour include
Which comparison operators to use
How to form
If
statementsWhen to use an
Else
branchHow
Select Case
statements streamlineIf...Else
Comparison Operators
All comparison operators produce true or false results. In other words, the comparison is either ...
Get Sams Teach Yourself Visual Basic® 6 in 24 Hours 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.