Or
The Or operator performs a boolean Or operation on
two boolean expressions. The operator is just like the english
language or meaning that if one or the two expressions is
true, then the Or operation evaluates to true.
| Expr #1 |
Expr #2 |
Result |
| False |
False |
False |
| False |
True |
True |
| True |
False |
True |
| True |
True |
True |
The Or and And boolean expressions may be strung together
to create complex boolean logic. Precedence for these operators always
follows from left to right. If you want to override the default
precedence, you can do so using parentheses.
If WeekDay(Now()) = 6 Or WeekDay(Now()) = 7 Then Response.Write "It's the weekend! Why are you working?" End If
|
 |

|