This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:xor [2019/12/21 14:22] – Typo fix: NOR => XOR. Add clarification that xor means "exclusive or" rytan451 | 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 XOR of the two arguments |'' | + | |
| === Description === | === Description === | ||
| Line 12: | Line 10: | ||
| 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 | TRUE FALSE Trace #prints out 1 (TRUE) to the tracelog | ||
| FALSE TRUE Trace #prints out 1 (TRUE) to the tracelog | FALSE TRUE Trace #prints out 1 (TRUE) to the tracelog | ||
| FALSE FALSE Trace   # | FALSE FALSE Trace   # | ||