I need to showcase only one out of the two texts randomly to participants, I currently have a loop with two possible texts in Excel, displaying them both ad random, is there any way to present only one text ad random instead of both texts?
I assume you mean to show the same text multiple times within the same loop/trial?
Just make sure all the variables you want to stay the same within the trial are the same variable. So if you have text_1 in the routine_1, then on the next routine, make sure to use the same text_1 variable in it.
There are many ways.
If your loop is called trials and you want to end it after the first iteration then you can add trials.finished=True in a Begin Routine or End Routine tab of a code component inside the loop.
Alternatively, you could select with row you are going to show before the loop starts with some code like:
useRows = [[0],[1]]
shuffle(useRows)
Then put $useRows[0] in the selected rows field of the loop.
1 Like