Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
XOR evaluates two conditions and if either of them is True then it returns True, if both of them are True then it returns False, if both of them are False then it returns False.
condition XOR condition2
- Either condition or condition2 must be True for the evaluation to return True.
- It is called "exclusive OR" because the conditions cannot both be True for it to return True like the OR evaluation.
- condition and condition2 can themselves contain XOR evaluations.
|=||Equal||IF a = b THEN|
|<>||NOT equal||IF a <> b THEN|
|<||Less than||IF a < b THEN|
|>||Greater than||IF a > b THEN|
|<=||Less than or equal||IF a <= b THEN|
|>=||Greater than or equal||IF a >= b THEN|
You can't both have won (or lost)!