This shows you the differences between two versions of the page.
xrpl:xor [2019/03/04 01:28] – created Karsten75 | xrpl:xor [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | ===== xor ===== | ||
- | |||
- | ^Arguments^Result^Notation^ | ||
- | |bool bool| bool| [bool bool- bool] | | ||
- | |||
- | |||
- | === Description === | ||
- | 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. | ||
- | |||
- | === Examples === | ||
- | <code prpl>if (1 xor (false)) | ||
- | trace(" | ||
- | endif | ||
- | </ | ||