Have a look at the simple user-input example in Planning and Implementing a Program
You need a variable that keeps track of the state of your system - for example is it waiting for inputA or inputB or none of them
...R
Have a look at the simple user-input example in Planning and Implementing a Program
You need a variable that keeps track of the state of your system - for example is it waiting for inputA or inputB or none of them
...R