If-then expression with multiple outputs and range

Hi,
Im trying to find an expression which allows me to change the output according to different set ranges from the input. I tried combining different if…then expressions but without any succsess so far. Im fairly new to working with expressions in GH so maybe im doing something fundamentally wrong. Thanks for any tips in advance
Best regards


expression.gh (25.9 KB)

The trick to do this quickly is Mass Addition
(replace A B C D by your values)

Selector.gh (8.3 KB)

1 Like

And there is the correct expression.
Remove the “” to use the values from the inputs.

expression.gh (26.2 KB)

1 Like

Great solutions! Thanks for your kind help.