Grasshopper

algorithmic modeling for Rhino

Hi everybody¡

 

does anyone know how to split a list between odd and even items?

I've done it manually using series, generating two lists, one with odd numbers and viceversa, but it is tedious due to the fact that i have to do it as many times as number of list i have.

 

Thanks

Views: 14644

Replies to This Discussion

Dispatch component, set the boolean to true false or false true, depending on how you want to start.

Hey,

 

if your list is randomly organized you can use a function x % 2 = 0

Best Regards

 

DeDackel

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service