VBS教程:运算符-Imp 运算符
来源:本站原创|时间:2022-11-25|栏目:vb|
Imp 运算符
对两个表达式进行逻辑蕴涵运算。
result = expression1 Imp expression2
参数
result
任意数值变量。
expression1
任意表达式。
expression2
任意表达式。
说明
下表显示如何确定 result 的取值:
如果 expression1 为 | 且 expression2 为 | 则 result 为 |
---|---|---|
True | True | True |
True | False | False |
True | Null | Null |
False | True | True |
False | False | True |
False | Null | True |
Null | True | True |
Null | False | Null |
Null | Null | Null |
Imp 运算符执行两个数值表达式相应位的逐位比较,并按下表设置 result 相应位:
如 expression1 中的位是 | 且 expression2 中的位是 | 则 result 为 |
---|---|---|
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 0 |
1 | 1 | 1 |
您可能感兴趣的文章
- 01-10下载文件到本地运行的vbs
- 01-10VBS中的正则表达式的用法大全 <font color=red>原创&
- 01-10VBS中SendKeys的基本应用
- 01-10VBScript教程 第十一课深入VBScript
- 01-10用VBSCRIPT控制ONSUBMIT事件
- 01-10VBScript语法速查及实例说明
- 01-10VBS中Select CASE的其它用法
- 01-10VBScript教程 第七课使用条件语句
- 01-10vbscript 可以按引用传递参数吗?
- 01-10VBScript教程 第二课在HTML页面中添加VBscript代码