Grasshopper

algorithmic modeling for Rhino

i have ten lists where each of them is holding ten variables, all packed into one tree. the lists hold only boolean variables. now i want to reduce each of the ten main lists to only one boolean variable. the variable should be true if there is at least one 'true' stashed in the sublist. can somebody help me achieving this in gh?

thx

Views: 243

Replies to This Discussion

Use 'SortList', which will convert booleans to 1s & 0s. Sorting will put all the 1s (trues) in the end. Then, either reverse the list and take only the first item, or take the last item of each list. If its 1, you know that list has a true, and if its 0, you know it has all false.
nice thinking, worked and thx

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