Dear kdoelling,
Thank you for your quick and helpful reply! I implemented it yesterday and asked some of my colleagues to do the same. It did not run the experiment on Psychopy, and it gave me this error (I added it to my practice loop):
BeforePracLoop = data.TrialHandler(nReps=SentBeforePrac.Split(" ").length;, method='random',
SyntaxError: invalid syntax
I hoped it would work on Pavlovia nevertheless, but now Pavlovia is forever stuck on “initialising experiment”. This happened before, when I implemented a ‘go to this webpage’ code, which after I deleted, worked. I’m trying to find another way to translate this code:
len(SentenceAfter.split())
Which I think might be the root of all problems. If you have another suggestion, please let me know. Thank you for taking the time to help me!
Kind regards,
Elise