XOR

XOR

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

XOR

Performs a Boolean XOR of two logic expressions.

Syntax

expression1 XOR expression2

Parameters

expression1Any conditional expression or Boolean expression. If the expression is complex, it must be enclosed in parentheses.
expression2Any conditional expression or Boolean expression. If the expression is complex, it must be enclosed in parentheses.

Return Value

Logical as follows:

Truth Table for Boolean XORExpression 1
TrueFalse
Expression 2TrueFalseTrue
FalseTrueFalse

Comments

Performs a Boolean XOR (exclusive OR) of two logic expressions.

Example

LastName = “Smith” xor FirstName = “John”

The entire expression is logically true only if LastName is Smith or FirstName is John, but not both; otherwise, the entire expression is logically false.

See Also

About Boolean Expressions

About Conditional Expressions

OR

Was this article helpful?
5 out of 5 stars

1 rating

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

pt_BRPortuguese