#pragma XOD dirtieness disable
struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
auto in1 = getValue<input_L>(ctx);
auto in2 = getValue<input_R>(ctx);
bool trueVal = isInputDirty<input_T>(ctx);
bool falseVal = isInputDirty<input_F>(ctx);
emitValue<output_OUT>(ctx, (in1==in2) ? trueVal : falseVal);
}
L | R | T | F | OUT |
10 | 5 | pulse | pulse | pulse |
10 | 10 | pulse | pulse | pulse |
5 | 10 | pulse | pulse | pulse |
5 | 5 | false | pulse | pulse |