Utopia does what you are asking for however hasn't been updated in some time so I am unaware if it still functions correctly.
I also believe Power Auras could be set up to do the conditional testing however you need to define the condition yourself.
Also, there is a thread specifically dedicated to asking questions like this.
"In anything, if you want to go from just a beginner to a pro, you need a montage." /w TankSpot WTB Montage for Raiders.