This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:xor [2021/02/05 16:43] – Rmoved discussion tag Karsten75 | crpl:docs:xor [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== 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 # | ||