nand

xod/core/nand

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