Serial Port Communication

yes !. Thats much clearer. I have uploaded the correct code.

Now that the code is running, i am not sure how best i can store the answers for each question , back into my arduino code . Im thinking maybe
i use the line

val_1 = inString
val_2=inString
val_3=instring

Within each of the if loops . Does that sound correct ?
Thanks for your help.

Serial__port_example.ino (805 Bytes)