And
The And operator is used to combine boolean statements together
and has the same meaning of the English language. If the two boolean
statements are both true, the result of the And operation is true. If
either of the statements is false, than the result is false.
This behavior is depicted in the chart below:
| Expr. #1
| Expr. #2
| And Result
|
| False |
False |
False |
| False |
True |
False |
| True |
False |
False |
| True |
True |
True |
Below is an example of the And operator. It will only output
the statement when both of the conditions are met (which means that
both of the expressions evaluate to true)
If I < 0 And J > 3 Then Response.Write "I < 0 And J > 3"
The counterpart of the And operator is the Or operator
which evaluates to true if either of the expressions is true.
|
 |

|