modifying a script
I need help again with modifying a script slightly. before I had a matching paradigm with three cards. It looked like this. The bottom cards would turn over to reveal two different picture (ie. A, B) and the top card would turn over to reveal either A or B. The participant is tasked with touching one of the two bottom cards that depicts the matching picture to the top green card. It is a very simplified version of the memory game.
The script I used looked like this:
each pair of cards object 5 and object 6, object 7 and object 8, object 9 and object 10 etc would be randomly assigned to either the right or the left bottom card and then one of the two would also appear in the target card position.
Now, I would like a similar paradigm but with four cards total instead of three. I tried my best to modify this script but I am getting an error saying
The script I modified looks like this
I also attached the project. Any help would be very much appreciated!! Thank you so much in advance.