ROPE Language Reference - "xor"

The "xor" action pops two or more (with AnchorBrackets) values, XORs (exclusive-or) them together, bit by bit and returns the result. This can be used for both logical "xor-ing" of conditions, and bit-wise operations on integers or strings.

If the arguments to "xor" are strings, then they must be the same length and the result (the value pushed back) will also be a string of that length.

For example..

$a 0x0400 xor assert
xor($a 0x0400 $b) assert

Revision History

See Also

or, and