if(cond)

koadrobot/logics/if(cond)

IF - GATE R=COND ? T : - Allows values to pass through only if COND pin is set to true.
if(cond)
@/if(cond)
IF - GATE R=COND ? T : - Allows values to pass through only if COND pin is set to true.
CONDboolean
Whether values should pass through
Tnumber
if(cond)
COND
T
R
Rnumber
To use the node in your project you should have the koadrobot/logics library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    if (getValue<input_COND>(ctx))
        emitValue<output_R>(ctx, getValue<input_T>(ctx));

}

Tabular tests

CONDINOUT
false00
true00
false320
true1010
true0.30.3