Hi there
I am a beginner in Grasshopper and I’m not sure how to make an either...or algorithm.
As an input I have ‘1’ or ‘2’ and I would like to make a green or a red circle.

Can someone show me how that can works?

Thanks a lot!!!

Hello, take a look at Sift Pattern or Dispatch.

Alternatively the Expression component allows you to define If/Else or just use Script components such as Python:

if (x==2):
  a = "(255,0,0)" #red -> r g b where 255 is max
  a = "(0,255,0)" #green
1 Like

Hi Tom tom

now I am a step further.
This was my second question and you helped me the scond time!!

Double Thanks

1 Like