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
Rnumber
To use the node in your project you should have the koadrobot/logic 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));
}