How do I create a input filter?

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

if type(x) == “xxx”:
xxxxx

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?

image

Perhaps something like this:

-Kevin

1 Like