Grasshopper

algorithmic modeling for Rhino

Date Tree Selection Rules - More than one sequence

Hi David,

I have this sequence 0,3,...,18 and I also want to add 19, 20

but the only way GH will allow me to write this is the long way (0,3,6,9,12,15,18,19,20) is this correct?

Views: 356

Replies to This Discussion

{0; (0, 3, ... , 18) or (19, 20)}

I haven't tried it, but it should work...

--

David Rutten

david@mcneel.com

Yes that did it. Thank you very much

It's weird because I actually tried AND when I was experimenting.

In English you think I want "This AND That" but in logic no path will ever do that, ever. So it has to be OR.

Maybe you could step outside the Boolean Logic Rules on this one and have AND to mean the same as OR so it doesn't matter in layman's terms which you write. 

On second thoughts this might not be such a good idea as You might get "This AND NOT that"

Well, OR and AND are both already defined, so they either work the way they work in every programming language or they work the other way around.

--

David Rutten

david@mcneel.com

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service