gate(number)

xod/core/gate(number)

Allows values to pass through only if EN pin is set to true
gate(number)
@/gate(number)
Allows values to pass through only if EN pin is set to true
INnumber
ENboolean
Whether values should pass through
gate(number)
IN
OUT
EN
OUTnumber

C++ implementation

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

    }
}