latch-boolean-v

cesars/data-latch/latch-boolean-v

No description
latch-boolean-v
@/latch-boolean-v
Deprecated:
L1boolean
LT1pulse
L2boolean (variadic)
LT2pulse (variadic)
latch-boolean-v
L1
LT1
L2
LT2
L
DONE
DONEpulse
Lboolean
To use the node in your project you should have the cesars/data-latch 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_LT1>(ctx)){
       emitValue<output_L>(ctx, getValue<input_L1>(ctx));
       emitValue<output_DONE>(ctx, 1);
   }else if (isInputDirty<input_LT2>(ctx)){
       emitValue<output_L>(ctx, getValue<input_L2>(ctx));
       emitValue<output_DONE>(ctx, 1);
    }
}