Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Table of Contents

Chapter 5: Decision
Last change: February 13 2016 18:47:58.

5.1   Logical Expressions

As you may recall, a simple If statement has the following syntax:

If Condition Then Statement

Where Condition represents an expression that can be evaluated to True or False, and Statement represents a VB statement such as the assignment statement explained in previous chapters.
The conditional expression is recognized as the logical expression. Two types of operators are used to construct a logical expression: relational operators and logical operators. Let's take a look at relational operators first.

Last change: February 13 2016 18:47:59.
  1. 5.1 Logical Expressions
    1. Relational Operators
    2. Assignment Statements
    3. Logical Operators
    4. Operational Precedence
    5. <<PreviousNext>>