gate(string)

xod/core/gate(string)

Allows values to pass through only if EN pin is set to true
gate(string)
@/gate(string)
Allows values to pass through only if EN pin is set to true
INstring
ENboolean
Whether values should pass through
gate(string)
IN
OUT
EN
OUTstring

C++ implementation

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

Tabular tests

ENINOUT
false"wtf"""
true"lalala""lalala"