Evaluate error - How to fix expression?

I am trying to write a function but looks like my syntax is wrong. Any suggestions on how to fix it?
Any help will be appreciated

Expression_error.gh (46.4 KB)

You can use If(condition,x,y) instead, the ternary operator with question mark and colon is not supported:

thanks

1 Like