Or Operator

Performs a bitwise or logical OR operation on two operands.

Syntax
expr1 Or expr2

Parameters

expr1
Specify an integer or Boolean value.
expr2
Specify an integer or Boolean value.

Return Values
Bitwise OR value of the operands if the expressions are integers. Logical OR if the expressions are Boolean.

Description
For integer expressions, the Or operator performs the bitwise OR operation on the values of the operands. Each bit of the result is 1 if one or both of the corresponding bits of the two operands is 1.

For Boolean expressions, the result is True if either of the expressions evaluates to True.

See Also
And, LShift, Mod, Not, RShift, Xor

Or Operator Example
Here is an example of a bitwise OR.

>print 1 or 2
 3
>

Here is an example of a logical OR.

If a = 1 Or b = 2 Then
c = 3
EndIf