Grasshopper

algorithmic modeling for Rhino

if i have a list of Boolean values true or false 

and i wanted to read only one value from this list

true if all the values are true 

if else is false 

or the opposite ? 

Views: 531

Replies to This Discussion

There are probably many good ways. Here one using Mass Multiplication:

Thanks Gabe, it work 

but unfortunately not the way you show it 

i have a list look like the first list 

it suppose to give me False as there is one value of false 

but it is giving me True ? 

???

You might be using Mass Addition instead of Mass Multiplication. with MM you get 0*1*1*1*1 = 0(False) and MA you get 0+1+1+1+1=4(True)

You are Right 

 

Thanks 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service