Output a list of boolean values with a slider

I output a 10-line-list of boolean values. One of the lines is “true”, the other nine are “false”. Now to move the “true” position" to line 5, i have to doubleclick the first toggle to set line 1 to “false” and the doubleclick the fifth toggle to set line five to “true”.

I would like to have a simpler and more handy setup, for example a number slider with integers ranging from 0 to 9. Dragging the slider the to “5” should move the “true” position to line five while setting all other positions to “false”.

Any ideas? Thanks in advance!

boolean_slider.gh (14.6 KB)

Hey check if this is what you are looking for
boolean slider.gh (7.0 KB)

You could use Replace Items.

Replace_reV1.gh (8.6 KB)

1 Like

very creative yet exactly what i need here …

thanks to you, too!
good opotunity for me to learn more about some components …