This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
crpl:docs:xor [2014/07/08 21:13] – ParkourPenguin | crpl:docs:xor [2021/02/05 11:43] – Rmoved discussion tag Karsten75 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
===== xor ===== | ===== xor ===== | ||
^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. |