Setting up rules based on port descriptions

Hi Thanks for this. I did read that post - but it requires us to change the port names on the switches. The port description field already has all the details I need, I just am unsure on the correct rule conditions to say for example,

If Port Description contains “Trunk” then montior state changes

Hope that makes sense,