| 如果 expression1 為 | 且 expression2 為 | 則 result 為 |
|---|---|---|
| True | True | True |
| True | False | False |
| True | Null | Null |
| False | True | False |
| False | False | False |
| False | Null | False |
| Null | True | Null |
| Null | False | False |
| Null | Null | Null |
And 運算符還對兩個數值表達式中位置相同的位執行逐位比較,并根據下表設置 result 中相應的位:
| 如 expression1 中的位是 | 且 expression2 中的位是 | 則 result 為 |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
下一篇:VBS教程:運算符-運算符(+)