Hello everyone, any help with coding is highly appreciated.
I have already the digit span designed. However, it has a bug. The participant hears a sequence of digits and is asked to recall them immediately following he/she finishes hearing the digits in the identical forward sequence. The participant is supposed to be unable to type the digits while he/she is hearing the digits. However, what happens is that (the bug) the participant can type the digits while he/she is hearing. This, as a result, negatively affects the results.
You seem to placed the code in between two function definitions, as opposed to during the experiment itself. I use Builder myself, and would place this code in Begin Routine of the routine where the experiment is waiting for a response.