Grasshopper

algorithmic modeling for Rhino

hi every one

how can i write this "if statement" in grasshopper :

if x+y<3 dont change x and y value

if is not change value of x and y to z(0.5) and t(0.8)

thanks 

Mehrnaz

Views: 1405

Replies to This Discussion

Something like this?

Attachments:
Or you could create two expressions:
If(x+y<3, x, 0.5)
If(x+y<3, y, 0.8)

I wonder if that would look more readable.

or this 

Stream component works fine with lists (multiple items), only one pattern 

but for Pick & choose, each item need its own pattern, so either you need to graph the list or repeat the pattern (duplicate)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service