Question: in what kind of event are you trying to use this?
Suggestion: use a timer and an on signal event to continue.
Listen, your using a variable to store an evaluation why even use the variable at all do this........
if ($input(Question?,y) == $false) { do stuff }
else { do other stuff }
you see you dont even need to store a variable. Using the $input event within an if statement works.
Btw by adding a y switch in the input event it makes it yes,no read the manual on other switch possibles, has n switch will make yes no cancel buttons
Also using the input event in the if statement will allow the time allowment to perform the command.