This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
crpl:docs:xor [2013/01/18 01:10] – grauniad | crpl:docs:xor [2014/01/15 17:37] – Added some more info Clean0nion | ||
---|---|---|---|
Line 8: | Line 8: | ||
=== Description === | === Description === | ||
- | Pops two items from the stack, treats them as boolean values, ' | + | Pops two items from the stack, treats them as boolean values, ' |
- | and pushes 0 or 1 back to the stack. | + | |
+ | If both items are TRUE, 0 is pushed to the stack. If both items are FALSE, 0 is pushed to the stack. If one item is TRUE and the other is FALSE, 1 is pushed | ||
=== Examples === | === Examples === | ||
< | < | ||