Split list by range of values


#1

Hi all,

This one should be quit easy but i can’t figure out how to split this list into sublists containing value ranges.
one list with all elements 15001 till 20000
one list with all elements 20001 till 25000
etc.

Please help!


#2

One possible way…


#3

Vikram, where do I go to learn your code block magic?

Is b1 and b2 just a variable similar to n?

Are these code that everybody uses a native language like python? Or similar?

Thanks in advance

 


#4

The code (in code blocks) is Design Script and you could begin by looking at

http://dynamoprimer.com/07_Code-Block/7_Code-Blocks-and-Design-Script.html