Choose color by number

Hi, look at the picture I attached and you know what I want to know:
If the 3rd toggle button is activated i want the output color to be orange. If the 2nd button is activated, it should be green and so on.
Which node do I need?
I think it is quite easy but I´m not getting it…
Thanks for your advice.

The “Select (Color)” node will do that.

IOBox(Bang) + Multiflipflop(generate Index) + getslice(color)

Thank you so much!
Both examples work well for me.
A attached a sample sketch.

chooseColorByNumber.v4p (8.9 kB)