This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:xor [2014/01/15 22:37] – Added some more info Clean0nion | crpl:docs:xor [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | + | |
| <- [[crpl: | <- [[crpl: | ||
| ===== xor ===== | ===== xor ===== | ||
| - | ^Arguments^Result^Notation^ | + | xor |
| - | |Two items on the stack|The conditional NOR of the two arguments |'' | + | |
| === 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. | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| + | TRUE TRUE Trace # | ||
| + | TRUE FALSE Trace #prints out 1 (TRUE) to the tracelog | ||
| + | FALSE TRUE Trace #prints out 1 (TRUE) to the tracelog | ||
| + | FALSE FALSE Trace # | ||