Thank you so much!
I will try this one and will let you know.
Cheers!
Sumathi.
Hello,
Does this code work online? Or just local experiments?
Best,
Paige
Hello,
I use a different approach. I have a GDPR-routine in which the participants are asked to press one of two keys. If they do not wish to participate, I set a counter for a loop following the GDPR-routine to 1, otherwise the loop-counter is set to 0. In case, the counter is set to 1, the loop is executed showing some text (2 sec.) that the experiment now ends because of missing consent and I end the experiment with a
core.quit()
in the end routine tab.
I used this approach because I only used key-presses in the experiment and did not want the participant to switch between keyboard and mouse.
Best wishes Jens