Grasshopper

algorithmic modeling for Rhino

I have two expressions... the one on the left works as I would like, while the one on the left clearly has an error. I could use some tips from someone that can spot what I am doing wrong here.  I suspect it is something obvious to many.

Any advice is welcome. Thanks!

Warning given with red component

1. Expression generated an error for (x, y, a, b): Operator + not defined for bool and int

Views: 1537

Replies to This Discussion

try using brackets around the y+2000

e.g.

If(x>(y+2000),x/a,x)

Thanks Danny.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service