# XOR - What it mean?

0 favourites
• 8 posts
• XOR - What it mean?

Many topics here are talking about it, using it, but no one really say what it's <img src="smileys/smiley19.gif" border="0" align="middle" />

• Exclusive or, and I wouldn't worry about it. Its the same as or as far as events are concerned.

"A simple way to state this is "one or the other but not both."

So its pretty much useless here, as separate conditions will do.

• To expand upon newt's response, it is a logical operator, in the same vein as AND and OR. Here is a hastily constructed truth table:

| p | q || p AND q | p OR q | p XOR q

------------------------------------

| 0 | 0 ||    1    |    0   |    0

| 0 | 1 ||    0    |    1   |    1

| 1 | 0 ||    0    |    1   |    1

| 1 | 1 ||    1    |    1   |    0

Basically, XOR says if either p OR q is true, but not both, then the result is true, otherwise it's false.

EDIT: newt already updated his post with a link, and i forgot the forum is displayed in non-fixed font, so blah

• oh GOD, my brain will burn.

figuring out how to use it in a good way later.

Thanks newt and Wastrel

• It's easy.

0 XOR 0 = 0

1 XOR 0 = 1

0 XOR 1 = 1

1 XOR 1 = 0

It means "EXCLUSIVE OR", so it is only true if only one is true, not both.

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• Wastrel: 0 AND 0 is 0, not 1! Otherwise, good table :)

• I have always been interested in what these obscure logical operators would ever be used for...

• Wastrel: 0 AND 0 is 0, not 1! Otherwise, good table :)

Then my table is neither truthful NOR logical! <img src="smileys/smiley4.gif" border="0" align="middle" />

• 8 posts
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)