ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






OPERATOR:  Imp

Imp

The Imp operator is used to perform a logical implication on two expressions. The expressions must be of Boolean subtype (True or False) or Null. It can also be used to perform bitwise comparison. The order of the expressions is important.

Code:
<% =True Imp True %>
<% =True Imp False %>
<% =False Imp True %>
<% =False Imp False %>

<% =True Imp Null %>
<% =Null Imp True %>
<% =False Imp Null %>
<% =Null Imp False %>
<% =Null Imp Null %>

Output:
True
False
True
True

(Null output)
True
True
(Null output)
(Null output)

Code:
<% anyexpression = True %>
<% someexpression = False %>
<% =anyexpression Imp someexpression %>

Output:
False