Defining correct response when multi-character response (text input) is used
I have recently started using OpenSesame with little knowledge in inline scripts. I am creating a digit span task, in which participants had to type the numbers in the presented order. That is, if 1, 5, 2 appeared one by one, the correct answer should be 152. I used text_input to record the answers. However, I used a random number generator, so I don't know how to specify correct response in order to give feedback after the text_input. I tried the following but it didn't work:
1. Create a correct response column in the loop. E.g., Column name: fwresp, then if the trial is supposed to generate four random numbers, i give a value of [num0][num1][num2][num3] to indicate the correct response.
2. Create an inline script, in which I specify if the text_input variable (e.g., "fwkey") and correct response. E.g.,
if self.get("fwkey") != ("fwresp"):
Any solution is highly appreciated!