Wikia

FiM++ Community Wiki

Exclusive or

Revision as of 01:21, November 20, 2012 by Supuhstar (wall | contribs)

58pages on
this wiki
Comments0

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
AB
TT F
TF T
FT T
FF 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.

Around Wikia's network

Random Wiki