IF - BRUNCH
TRIG ? (COND ? T : F ) : -
Routes an incoming pulse to either of outputs depending on condition
if(brunch)
@/if(brunch)
IF - BRUNCH
TRIG ? (COND ? T : F ) : -
Routes an incoming pulse to either of outputs depending on condition
CONDboolean
Condition value
TRIGpulse
Fpulse
Tpulse
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 (!isInputDirty<input_TRIG>(ctx))
return;
if (getValue<input_COND>(ctx)) {
emitValue<output_T>(ctx, 1);
} else {
emitValue<output_F>(ctx, 1);
}
}