You want it to only cast purge if the target has a specific debuff? Yeah, that should be possible. I'm not sure of the syntax, but it'd be something like "My.CurrentTarget.Debuffs." Play around with it and see, or hopefully someone with more knowledge than me can help you.