Grasshopper

algorithmic modeling for Rhino

I want to try to do simple if-then statements without resorting to scripting.  For example, If x-coordinate = 1, do this, otherwise don't do this.

Views: 7574

Replies to This Discussion

Check out the Math > Operators.  Here you have Equality, Larger Than, Smaller Than, and Similarity.  All with output a list of Booleans (True / False Values).  You can combine that with Sets > List > Dispatch to split the true and false items into two lists...there are other things you can do with the values, but this should get you started...
Ah, Dispatch, that is what I have been looking for!

FYI:  Expression components can handle if statements...

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service