FANDOM


The exclusive or (or either or) operator is a Boolean operator which returns true if and only if the number of true arguments is odd, else returns false.

Its token is named EXCLUSIVE_OR.

Truth Table Edit

2 Inputs
Inputs Output
AB
TT F
TF T
FT T
FF F

FDS Edit

Icon Info
See Also: Prefix notation

Example Edit

I did this as long as either Applejack is 23 or Spike is 92: ...

This loops the next part of code if either the variable Applejack is equal to 23 or the variable Spike is equal to 92.

This is equivalent to the following Java code:

while((Applejack==23)^(Spike==92)) { ...

See Also Edit


Icon Info
This article is a stub. You can help FiM++ Wiki by expanding it.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.