Script for disable a condition inside an automation

Hello everyone. By any chance, can you think of an idea on how to insert a button on the dashboard to disable a function within an automation?
I don’t know if I explained myself well…
the idea would be to turn off a condition manually.

Sur use an input boolean helper. You can switch these on or off from your dashboard.

Combine a state condition using the input boolean with any condition using AND logic.

Thanks so much for the reply Tom.
do you have an example in yaml script?