Convert lists of numbers

Hi Guys,

I’m trying to figure out how to convert the list of numbers with the following conditions using GHpython:

list of numbers.gh (2.2 KB)

range 0-500 = 500
501-1000 = 1000
1001-1500 = 1500

image

2 Likes

Hey Will,

I think this will do. Thanks for the help