User Tools

Site Tools


ixe:irpl:logic:xor

xor

XOR

Description

Pops two items from the stack, treats them as boolean values, ‘xors’ them, and pushes 0 or 1 back 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

if (1 xor (false))
    trace("1 xor false is true")
endif
ixe/irpl/logic/xor.txt · Last modified: 2025/01/07 15:41 by 127.0.0.1