result = expr1 OR expr2

The logical 'OR' operator (Boolean).


expr1The first expression evaluating to the True and False (Boolean).
expr2The second expression evaluating to the True and False (Boolean).

REMARKS
* This is an Operator.
* You can use the AND operator to return the logical "AND" operator.
* You can use the NOT operator to return the logical "NOT" operator.
* The equivalent Excel function is Application.WorksheetFunction.OR
* For the Microsoft documentation refer to docs.microsoft.com

Debug.Print True Or False  '= True  
Debug.Print True Or True '= True
Debug.Print False Or False '= False
Debug.Print False Or True '= True
Debug.Print (1=2) Or (1=1) '= True
Debug.Print 1=2 Or 1=1 '= True
Debug.Print 1 Or 0 '= 1
Debug.Print 1 Or -1 '= -1

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