Codebox Operators xor

xor

Logical xor operator

xor(in1, in2): out1

Arguments:

Arguments

NameTypeDefaultDescription
in1number

Performs the operation with the value currently stored. If there is no argument, || initially holds 0.

in2number

The value is compared to the value in the left inlet to determine output but only a value in the left inlet will trigger output.

Returns

NameTypeDescription
out1number

If either input value is is non-zero, but not both, the output is 1. Otherwise the output is 0.

Aliases

  • ^^