Grasshopper

algorithmic modeling for Rhino

Hello everyone. 

I found that if function in the forum, not in tutorials nor in the primer. The Forum is great and very helpfull.

 

I want to find a different solution to the one above though:

 

if one of the values inherited from the number sliders is lower than 0.5 I neet 0 as an output. If it is higher I need -0.15 as an output.

 

I coudln't figure out to have several if premises included in the function.

 

This a dirty version, which works.

Maybe anyone has a nicer idea.

 

 

Views: 2448

Replies to This Discussion

Here's another way to do it but I don't think that it saves you anything.  I couldn't see how to do a boolean insde the expression editor either.

 

Chris

Attachments:

a simple script is an easier way to do this.  see the attached.

Attachments:

happy new year.

thanks a lot for your ideas concerning that problem.

 

 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service