XOR
Welcome to our Knowledge Base
Documentation | Blog | Demos | Support
< All Topics
Print
XOR
5 out of 5 stars
1 rating
5 Stars | 100% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Performs a Boolean XOR of two logic expressions.
Syntax
expression1 XOR expression2
Parameters
expression1 | Any conditional expression or Boolean expression. If the expression is complex, it must be enclosed in parentheses. |
expression2 | Any 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 XOR | Expression 1 | ||
True | False | ||
Expression 2 | True | False | True |
False | True | False |
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
Updated
ByJason Lee
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