IMP

result = expr1 IMP expr2

The logical implication from two values (Variant).


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 EQV operator for logical equivalence.
* For the Microsoft documentation refer to learn.microsoft.com

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

Debug.Print True Imp True '= True
Debug.Print True Imp False '= False
Debug.Print False Imp False '= True
Debug.Print False Imp False '= True

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

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