FANDOM



:boolean xor boolean

xor will evaluate to true only if one of the expressions is true and the other is false. Which is true and which is false does not matter, but only one can be true and only one can be false.

Location Edit

  • Test (2nd MATH)
  • LOGIC
  • 3:xor

Example Edit

:Prompt A,B
:If A=0 xor B=0:Then
:Disp "EITHER A OR B WAS 0","A AND B WERE NOT 0"

This prompts for two numbers, and if one but not both of the numbers were 0, this says so.

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.