REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: xor

xor  value1  value2

Returns the first value exclusive ORed with the second.

Arguments:

value1 [logic! integer! char! tuple! binary! bitset! typeset! datatype!]

value2 [logic! integer! char! tuple! binary! bitset! typeset! datatype!]

See also:

and   or   not  

Description

For integers, each bit is exclusively-or'd. For logic values, this is the same as the not-equal function.

print 122 xor 1
123
print true xor false
true
print false xor false
false
print 1.2.3.4 xor 1.0.0.0
0.2.3.4


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin