gate(byte)

xod/core/gate(byte)

Allows values to pass through only if EN pin is set to true
gate(byte)
@/gate(byte)
Allows values to pass through only if EN pin is set to true
INbyte
ENboolean
Whether values should pass through
gate(byte)
IN
OUT
EN
OUTbyte

C++ implementation

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

    }
}