Grasshopper

algorithmic modeling for Rhino

I am just learnign grasshopper I started yesterday and I would greatly appreciate any help i could get.  currently I have two problems

the first is i have a boolean list and i need to split it into two lists one with only trues

and the other with only false or i just need to count the number of trues and the number of falses.

 

the other is i have a branching list and i one to get first the branch and then an element from the branch and i am not sure what utility i need to use in order to do that.  List item only lets me enter an integer.  Thanks so much!

 

Carl

Views: 604

Replies to This Discussion

the answer to the 1st question
CullPattern is handy for separating a list. Or you can use mass addition to simply get a sum. Since true = 0 and false = 1, the sum will be the count for true.

the answer to the 2nd question

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service