<< Prev        Next >>

ID : 634

Or Operator

Function

To obtain logical OR of 2 expressions.

Syntax

expression1 Or expression2

Guaranteed entry

expression1
Designate integer type data.
expression2
Designate integer type data.

Return value

Return integer type data.

Description

The operation result (result) is True when either or both of the 2 expressions is/are True. The following table is a correspondence table of values of the 2 expressions and operation result (result) values.

expression1 expression2 result
True True True
True False True
False True True
False False False

Bit operation

This operator also performs bitwise comparison with corresponding bits in 2 formulas. Corresponding bits in the operation result result are set according to the next truth value table.

expression1 expression2 result
0 0 0
0 1 1
1 0 1
1 1 1

Attention

-

Example

-

ID : 634

<< Prev        Next >>