xor

SpecialNodes xor

input ports:
Name Type Description Optional

in0

?

input, interpreted as boolean

yes

in1

?

input, interpreted as boolean

yes

…​

in N-1

?

input, interpreted as boolean

yes

output ports:
Name Type Description Optional

output

bool

logical xor of inputs

no

xor reads its inputs, interprets them as boolean values, and outputs their logical xor. Any value in Transparency can be interpreted as a boolean in Transparency; the default value for each type is interpreted as false and all other values as true.

xor of any number of inputs returns true if an odd number of the inputs are true.