URL of experiment: zzhuoran / ADD_Symmetry_Span · GitLab
.thisN doesn’t work online unfortunately.
You’ll need to set and increment a counter variable
How would I go about implementing this variable? After I saw this message of yours’, I went on the forum to find how to go about doing this. Based on other people’s discussion, would I need to create this counter variable at the begin routine of the code which stores the correct answer and then increment this at the end routine?
Ex. Begin routine: trialstart = 0
End routine: trialstart = +1
@Becca Hi Becca, I hope you had a wonderful day today! I don’t know if you came across this issue in the forum but I would really appreciate your help on this as your suggestions were always really helpful on other people’s experiments. I’m currently having issues recording the correct answers for a task in which individuals are asked to click on the correct places that the red square appeared in after seeing the red square appeared five times in one of the 16 possible places on the grid. I tried to implement other’s suggestions about creating a new variable and incrementing it. I looked everywhere to see how it works and I was finally able to do so today. However, this implementation still didn’t give me the result that I wanted. Pavlovia was still recording my answers as incorrect even though they are correct. Please note that I created these codes in the routine for recalling the positions of the squares and only for the JS portion. Here’s what I came up with so far:
Please let me know if you need anything else from me.