nor

xod/core/nor

Outputs true if and only if all inputs are false
nor
@/nor
Outputs true if and only if all inputs are false
IN1boolean
IN2boolean (variadic)
nor
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));
    }
}