REplace values in a list if over a certain value


#1

Hi,

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!

Anthony


#2


#3

Thanks Tomasz, perfect!


#4

I was overcomplicating things as usual.


#5

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.

Thanks

Anthony


#6

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


#7

ok I see, thanks!


#8