Action framework conditions

Conditions on Actions would eliminate so many lines of javascript!