Testing the value of an attribute instead of the state of the entity

I can use the “Current State” node to test the state of an entity when msg.payload is received, but what would I use if I wanted to test an attribute value of an entity the same way?