Grasshopper

algorithmic modeling for Rhino

Choosing between two options according to a variable number

Hi everyone, i'm new here, and also just starting to use Grasshoper. I really need your helpbecause i don't know which icones in GH i should use and combine.

I have two equations:

E1) 3+x=....  

and 

E2) x/2=...

To start I want to use a NumberSilder (from 3 to 10).

If the number is EVEN (4,6,8...) I would like E1 to be "picked" and be solved by replacing x by the EVEN number.

If the number is ODD (3,5,7...) I would like E2 to be "picked" and be solved by replacing x by the ODD number.

I made a sketch below.

I saw that it was possible for people giving their answers to post a GH file. It would be kind of you if you can do that. Again thank you very much, I hope it will be possible.

AK

Views: 540

Replies to This Discussion

Try this.

Attachments:

Great! Thanks Hyungsoo Kim, that's perfectly what I had in mind. I did something more, I added the option "Clean Tree", which allows me to have a list without <null> results. 

Best regards

AK

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service