Can policies be triggered by situations?

Say, if I enter a state something like high-productivity or an obesity epidemic, is it possible to enact policies only if those conditions are met, and automatically disable them once i’m no longer meeting them?