Replacing numbers

Hey, I need to replace numbers for each one of the stream gates, if one equals 1 then all the others should be replaced with 0. for all of them to work in conjunction. I don’t even know where to start, any help would be appreciated.

Hey,

Do you mean like this:

20

If one slider equals 1.0, all the other sliders default to 0.0, and itself remains 1.0.

hi, here is another way:

adicao.gh (10 KB) adicao
(if you can’t move the boat, move the port)

Both solutions made the trick, Aris’ one is more time efficient inside grasshopper though. Thanks, both of you. This saved my project!

1 Like

You can use equality to 1