Stopping Trial Repeats

Hi, I am struggling with something and I am low on time.

The issue that I am having is that I have set up a lexical decision design, and the words that should appear are within an excel file (52 words/nonwords), after every 10 words, the participant takes a break and then the loop takes them back to carry on, however, the issue is that some of the trials are repeated (words that have already appeared, appear again). Is there anyway of stopping this, so the loops carry’s on from where it last left off from when the break started, instead of going back to the start completely.

Thanks for any help,

David

I don’t know what you’ve attempted by the way to do with without repeats is to have one loop for all 52 trials, and then have a break routine which skips if trials.thisN % 10 != 9

Hi, thank you for getting back to me, what I decided to do in the end was create 5 different loops (seen in the image below), so after 10 words are shown, the participant has a break, and then they move on to the next set of 10 words and so on, until 50 words have been displayed. This is a simpler solution, as I think I was looking for a complex workaround.

In your method if you want 10 random words assigned to each loop then you could use code in Begin Experiment to shuffle a list of numbers 0 to 49 and then use a different slice as the selected rows for each loop.

Oh that’s a great solution, thank you!