if(cond-pulse)

koadrobot/logics/if(cond-pulse)

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
if(cond-pulse)
R
COND
T
Rpulse
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, isInputDirty<input_T>(ctx));

}

Tabular tests

CONDTR
falseno-pulseno-pulse
falsepulseno-pulse
trueno-pulseno-pulse
truepulsepulse
truepulsepulse
trueno-pulseno-pulse
falseno-pulseno-pulse