If both expressions evaluate to True, result is True. If the second expression evaluates to False, result is False. If the first expression evaluates to False, the second expression is not evaluated and result is False. The following table illustrates how result is determined:
If expression1 is | And expression2 is | The result is |
---|---|---|
True | True | True |
True | False | False |
False | (not evaluated) | False |
False | (not evaluated) | False |
Logical Operators | Operator Precedence in Visual Basic | Operator Summary