IF - GATE
COND ? (T ? R : - ) :-
Allows pulse to pass through only if COND pin is set to true.
if(cond-pulse)
@/if(cond-pulse)
IF - GATE
COND ? (T ? R : - ) :-
Allows pulse to pass through only if COND pin is set to true.
CONDboolean
Condition value
Tpulse
Rpulse
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, isInputDirty<input_T>(ctx));
}