gate(boolean)

xod/core/gate(boolean)

Allows values to pass through only if EN pin is set to true
gate(boolean)
@/gate(boolean)
Allows values to pass through only if EN pin is set to true
INboolean
ENboolean
Whether values should pass through
gate(boolean)
IN
OUT
EN
OUTboolean

C++ implementation

node {
    void evaluate(Context ctx) {
        if (getValue<input_EN>(ctx))
            emitValue<output_OUT>(ctx, getValue<input_IN>(ctx));
    }
}