When learning Tasker most people start with Tasks. After a few months they investigate Profiles. After a year they investigate Scenes.
Scenes can contain a wide variety of elements.
The way to ask a question and process the response is a to post a question in an element (like a Text or Button) and then process a response in a Tap or Long Tap action associated with that element.
Posting the code here from a scene is not really possible.
An alternative might be to use aPopup Task Buttons …
Dev (586)
A1: Popup Task Buttons [ Text: Mode:Text Task:A Task:B Task: Background Image: Layout
opup Task Buttons Timeout (Seconds):10 Show Over Keyguard:On ]
A (583)
A1: Flash [ Text:A Long:On ]
B (584)
A1: Flash [ Text:B Long:On ]
… Thom