Checking if an element is of a specific category

I’m just getting started with Dynamo, and I’m running into an issue. I want to do an action on every item in the active view of a specific type, so I’m selecting everything in the view, iterating through them, and comparing their category using an ‘==’ operator. But for some reason, everything comes back as false! I’m not sure why…what am I missing?

Check the image below for more info. Thanks!

Hi! This is one way to achive this:

You could do it like this:

Thanks, this worked perfectly!