# Or Operator

Performs a logical OR disjunction on two expressions.

## āļāˇāļģāļ āļģāˇāļ­āˇāļē:

``````
Result = Expression1 Xor Expression2
``````

## āļ´āļģāˇāļ¸āˇāļ­āˇāļąāˇ:

Result:āˇāļāļāļŊāļąāļēāˇ āļ´āˇâāļģāļ­āˇāļĩāļŊāļē āļāļŠāļāļāˇ āˇāļą āļāļąāˇāļ¸ āˇāļāļāˇâāļēāˇāļ­āˇāļ¸āļ āˇāˇāļ āļŊāˇâāļēāļēāļāˇ.

Expression1, Expression2: āļāļļāļ§ āˇāļ¸āˇāļļāļąāˇāļ° āļāļģāˇāļ¸āļ§ āļāˇāˇāˇâāļē āļāļąāˇāļ¸ āˇāļāļāˇâāļēāˇāļ­āˇāļ¸āļ āļ´āˇâāļģāļāˇāˇāļąāļēāļąāˇ.

A logical OR disjunction of two Boolean expressions returns the value True if at least one comparison expression is True.

A bit-wise comparison sets a bit in the result if the corresponding bit is set in at least one of the two expressions.

## āļāļ¯āˇāˇāļģāļĢāļē:

``````
Sub ExampleOr
Dim vA As Variant, vB As Variant, vC As Variant, vD As Variant
Dim vOut As Variant
vA = 10: vB = 8: vC = 6: vD = Null
vOut = vA > vB Or vB > vC ' -1
vOut = vB > vA Or vB > vC ' -1
vOut = vA > vB Or vB > vD ' -1
vOut = (vB > vD Or vB > vA) ' 0
vOut = vB Or vA ' 10
End Sub
``````