Need something like "wait until" and "wait for trigger"

Nice one.
But it’s using an “external” variable (input_number). I would like to avoid this. But will keep it in my mind.