Switch output with several "input possibilities"

I have 10 toggles.
I would like to send a value in an output pin switch according to my “toggle number”

for instance: if i press toggle 5, I would like my switch send the value into the pin number 5…

I can’t figure out the way to make concat toggles to control my switch… it must be simple, maybe an object does that…
see my patch here…
thanks in advance…

distrib-switch.v4p (21.8 kB)

MultiFlipFlop (Animation) could help you.

cool merci !!!
I knew I was missing something… :-)
thanks and sorry for the noise.