Hi,
I would tend to solve Problem 1 in this way:
A minimal working example is attached. The “task” is to press the key corresponding to the letter on the screen. If you get it wrong, the trial repeats. If you get it right, the inner loop ends, and the next iteration of the outer loop runs.
Jan
repeat_trials.psyexp (10.7 KB)
input.xlsx (8.5 KB)