To use the node in your project you should have the fortunatoa3/linelogic 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) {
auto a = getValue<input_IN1>(ctx);
auto b = getValue<input_IN2>(ctx);
auto c = getValue<input_IN3>(ctx);
if ((a==false) && (b==false) && (c==false))
emitValue<output_OUT>(ctx, 1);
else if ((a==false) && (b==false) && (c==true))
emitValue<output_OUT>(ctx, 2);
else if ((a==false) && (b==true) && (c==false))
emitValue<output_OUT>(ctx, 3);
else if ((a==false) && (b==true) && (c==true))
emitValue<output_OUT>(ctx, 4);
else if ((a==true) && (b==false) && (c==false))
emitValue<output_OUT>(ctx, 5);
else if ((a==true) && (b==false) && (c==true))
emitValue<output_OUT>(ctx, 6);
else if ((a==true) && (b==true) && (c==false))
emitValue<output_OUT>(ctx, 7);
else if ((a==true) && (b==true) && (c==true))
emitValue<output_OUT>(ctx, 8);
}