REplace values in a list if over a certain value


I have a list of values and want to limit each value to a maxiumum of 480.

I used an if statement to say “if any values in the list are over 480, then use 480”.

However when i used the replace condition it applied this to the whole list.


As always any help would be much appreciated!



Thanks Tomasz, perfect!

I was overcomplicating things as usual.

Hi Tomasz,

Regarding this, I have another challenge, which is to plot these values as a sequence of points along a vector or curve from a starting point. I am currently looking how to achieve this but as I am a novice with dynamo I am having trouble.



Please mark post as solved and if you need further help - please create a new post!

ok I see, thanks!