a dummy way to do this is create an AOI with 10 boolean input, and 1 int output:
in the AOI,
1) convert all 10 bool input to int using mov function (bool to int)
2) after conversion, bit 0 mul by 1, bit 1 mul by 2, bit 2 mul by 4......bit 9 mul by 512
3) sum all the result together and pass to int output
you can then map your bit 0-1, or bit 3-12 on the AOI, example if the AOI input bit0 and 1 both on, 1x1 + 1x2 you will get int value of 3, lets say if AOI all input is on, you will get 1x1 + 1x2 + 1x4 +......1x512 = 1024
Hope this help