I am looking for a way to create a contract that reacts according to User Input. For my purpose it would be awesome to somehow "wait for a users input" and as soon as this is done automatically continue by executing a contracts function according to the user input. Now I know that "waiting loops" arent possible in functions because the transaction would simply run out of gas.
Is there any other way to solve this problem? The pattern I want to use is: "Execut contract A, during A ask User for input, continue A automatically as soon as the contract receives the users input"
Edit, More general explanation of the problem: Contract A provides a function. If a User wants to interact with the contract he call the function and gives the required arguments. At some point the function might ask the user for some additional information like an additional Uint-Value or String-Value. Now what I want is that the original contract function resumes doing its computation as soon as the user gives additional input
Any ideas for a pattern like this?