This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
crpl:docs:xor [2014/10/01 15:02] – external edit 127.0.0.1 | crpl:docs:xor [2019/12/21 09:22] – Typo fix: NOR => XOR. Add clarification that xor means "exclusive or" rytan451 | ||
---|---|---|---|
Line 4: | Line 4: | ||
^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
- | |Two items on the stack|The conditional | + | |Two items on the stack|The conditional |
=== Description === | === Description === | ||
- | Pops two items from the stack, treats them as boolean values, ' | + | Pops two items from the stack, treats them as boolean values, ' |
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 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 to the stack. |