Return Number of Boolean inputs.
to-number(boolean8) 
@/to-number(boolean8) 
Return Number of Boolean inputs. 
To use the node in your project you should have the 
koadrobot/casts 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.
struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) 
{
    uint8_t num =   (getValue<input_Q0>(ctx) << 0) | 
                    (getValue<input_Q1>(ctx) << 1) | 
                    (getValue<input_Q2>(ctx) << 2) | 
                    (getValue<input_Q3>(ctx) << 3) | 
                    (getValue<input_Q4>(ctx) << 4) | 
                    (getValue<input_Q5>(ctx) << 5) | 
                    (getValue<input_Q6>(ctx) << 6) | 
                    (getValue<input_Q7>(ctx) << 7) ;
    Number result = (Number)num;
    emitValue<output_OUT>(ctx, result);
}Q7 Q6 Q5 Q4 Q3 Q2 Q1 Q0 OUT false false false false false false false false 0 true true true true true true true true 255