FANDOM


The or operator is a Boolean operator which returns <value:true> if any of the arguments is true, else returns <value:false>.

Its token is named OR.

Truth Table Edit

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

FDS Edit

Icon Info
See Also: Infix notation

Example Edit

I did this as long as Applejack is 83 or Spike is 1: ...

This loops the next part of code if the variable Applejack is equal to 83 or the variable Spike is equal to 1.

This is equivalent to the following Java code:

while(Applejack==83|Spike==1) { ...

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.