How to change Item value in the List?


(Probosciger) #1

Hello, please watch my List
Item values in the List starts from 0.0 and ends on 1.0
I want to change all values lower than 0.5 to 0.5
For example:
if Item value is 0.3152 (lower than 0.5) than Grasshopper must change this value to 0.5
How to make it?

(Michael Pryor) #2

look at the minimum and maximum components.

(Probosciger) #3

OMG thanks bro! It is worked!

But i don’t understand why Max component change the List. I have 20 indices before Max component and 20 after. Earlier I thought Max component just remove indices with Item values lower than 0.5 and return 17 indices (for example)

(Michael Pryor) #4

Max makes no changes to a list. It changes the item to be either number A or B

(Probosciger) #5

OK I’m inderstand. Thank you