<< Prev        Next >>

ID : 635

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 : 635

<< Prev        Next >>