How do I create a input filter?

I am trying to create a input filter in ghPython using something like:

if type(x) == “xxx”:

the input showing in the image below is “Domain”, but I couldn’t get its type like an int. How do I create the filter to test if the input is “Domain” or other gh data type?


Perhaps something like this:


1 Like