IF expression with multiple conditions

Hi guys,

Can someone help, if it’s possible to create an expression with double condition?
I’d like to sort a list based on the values and set the pattern based on “IF (2<X<=4, 1, 0)”. Tried with and as well, but no success.

I think you can use Ghpython.

@nyiregyhazi.lili - what tool or programming language are you using?

– Dale

Only the expression component from grasshopper.

You can write double conditions like this:

As far as I know, the individual statements need to be placed between parenthesis (not brackets). Of course you can not only use and but also or.

6 Likes

Ooo great!! :smiley: thanks a lot!

Thanks a lot