xor

xod/core/xor

Outputs true if and only if just one of inputs has true value
xor
@/xor
Outputs true if and only if just one of inputs has true value
IN1boolean
IN2boolean (variadic)
xor
IN1
IN2
OUT
OUTboolean

C++ implementation

#pragma XOD dirtieness disable

node {
    void evaluate(Context ctx) {
        auto a = getValue<input_IN1>(ctx);
        auto b = getValue<input_IN2>(ctx);
        emitValue<output_OUT>(ctx, a != b);
    }
}