Help on text equality in ghpython

I’m trying to filter the y input by checking the colour equality but I’m not getting any result. I dont know how to let python read the text or dealing with it. Please find the attached image.

a number of ways to do this, in GH you can create a set and get its member index.

Re_get_boolean.gh (10.0 KB)

Hello,
You are getting an error because there is no colon : after ìf I == o == “Color”.
What are you trying to do here ?

Ohhh that fixes the whole thing! I don’t know how I didn’t notice it. Thank you!
I just wanted to check the equality before orient each surface on a curve. It’s just one step of a long process.

Thank you so much!