Or Operator

Used to perform a logical comparison between two Boolean expressions.

# Notes

# Syntax

result=expression1 Or expression2

Part | Description
--- | ---
result | A Boolean value.
expression1 | Any valid Boolean expression.
expression2 | Any valid Boolean expression.

If either expression evaluates to True, then result is True. If both expressions evaluate to False then result is False.

# Example

This example uses the Or operator to perform logical comparisons

Dim a As Boolean
Dim b As Boolean
Dim c As Boolean
Dim d As Boolean
a= True
b= False
d=a Or b //Returns True
d=b Or c //Returns False

.

# See Also

And, Not operators; Operator_Or function.