FiM++ Wiki
Register
Advertisement

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[]

2 Inputs
Inputs Output
A B
T T F
T F T
F T T
F F F

FDS[]

Icon Info
See Also: Prefix notation


Example[]

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[]


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