Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
Not applicable

Xor Logical Operators

Hi ,

I saw Xor in Qlikview help file

Logical exclusive or. The operation returns the logical exclusive or of the operands. I.e. like logical or, but with the difference that the result is false if both operands are true.

Can any one explain this in detail please ...

Tags (2)
1 Solution

Accepted Solutions
MVP
MVP

Re: Xor Logical Operators

Comparison with OR would you clear your concept.

(true OR true) -> true

(true OR false) -> true

(false OR false) -> false

whereas, for XOR

(true XOR true) -> false

(true XOR false) -> true

(false XOR false) -> false

i.e. - ONLY one true is true. (Note: order of true/false would not change the result)

Hope this helps you understand.

3 Replies
thornofcrowns
Valued Contributor II

Re: Xor Logical Operators

See here: http://erudition.io/tag/qlikview/ for an excellent explaination, with the use of diagrams.

MVP
MVP

Re: Xor Logical Operators

Comparison with OR would you clear your concept.

(true OR true) -> true

(true OR false) -> true

(false OR false) -> false

whereas, for XOR

(true XOR true) -> false

(true XOR false) -> true

(false XOR false) -> false

i.e. - ONLY one true is true. (Note: order of true/false would not change the result)

Hope this helps you understand.

Not applicable

Re: Xor Logical Operators

Thanks a lot tresesco for you reply ....