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


objects constants operators statements functions properties methods






OPERATORS:  Eqv

Eqv

The Eqv operator is used to perform a logical comparison on two exressions. (i.e., are the two expressions identical) The expressions must only be of Boolean subtype (True or False). The order of the expressions in the comparison is not important.

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

Output:
True
False
False
True

Code:
<% expression1 = True %>
<% expression2 = False %>
<% =expression1 Eqv expression2 %>

Output:
False