Ask For Input option to cancel next actions if input is canceled or exited via Esc key

Is it possible to add an option to cancel next actions if Ask for input bar is canceled or exited via Esc key? Something similar to "Find/Search Image on Screen & Move Mouse" action.

My setup goes like this (for Figma app). Apparently, if I press Escape while input is open, it proceeds to the next actions.

Screenshot 2024-09-22 at 1.29.31 AM

If there's a workaround, that would be appreciated. Thank you.

there is no such option yet, but maybe you could add an if condition that checks the state of the variable?

Either via a normal if or via a „if script returns true“

Thank you Andreas!

Btw, I used Pause Execution / Delay Next Action (async/not blocking) if variable is 0, to stop the action.