EQV

result = expr1 EQV expr2

The logical equivalence operator.


expr1The first expression evaluating to either True or False (Boolean)
expr2The second expression evaluating to either True or False (Boolean)

REMARKS
* This is an Operator.
* You can use the IMP operator for logical implication.
* For the Microsoft documentation refer to learn.microsoft.com

Debug.Print 1 Eqv 0           '= -2  
Debug.Print 1 Eqv 1 '= -1
Debug.Print 0 Eqv 1 '= -2
Debug.Print 0 Eqv 0 '= -1

Debug.Print True Eqv True '= True
Debug.Print True Eqv False '= False
Debug.Print False Eqv False '= True
Debug.Print False Eqv False '= True

Debug.Print True Eqv Null '= Null
Debug.Print Null Eqv True '= Null
Debug.Print False Eqv Null '= Null
Debug.Print Null Eqv False '= Null
Debug.Print Null Eqv Null '= Null

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top