#pragma XOD dirtieness disable
struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx)
{
auto trueVal = getValue<input_T>(ctx);
auto falseVal = getValue<input_F>(ctx);
if(getValue<input_TGL>(ctx))
{
emitValue<output_RT>(ctx, falseVal);
emitValue<output_RF>(ctx, trueVal);
}
else
{
emitValue<output_RT>(ctx, trueVal);
emitValue<output_RF>(ctx, falseVal);
}
}
COND | T | F | RT | RF |
false | 0.5 | 1.25 | 0.5 | 1.25 |
true | 10 | 20 | 20 | 10 |