<< Prev        Next >>

ID : 3802

Xor Operator

Function

To obtain logical OR of 2 expressions.

Syntax

expression1 Xor 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 only one of the 2 expressions is True. The operation result (result) value is determined according to the following table.

expression1 expression2 result
True True False
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 0

Attention

-

Example

-

ID : 3802

<< Prev        Next >>