Touch Action with if statement

Is it possible to add a touch action on a widget that depends on an condition? I want to touch the widget and either to launch the calendar (if the next event is scheduled for the next 30 min) or show a text otherwise.

Thanks in advance

No formulas are not YET supported on touch actions, please vote the corresponding idea in the IDEAS forum if there or create one new if not