abort experiment at certain point
in OpenSesame
Dear forum,
I am looking for the code for an inline_script to stop and close the whole experiment in case the participant does not fit to the inclusion criteria.
A workaround would be to make an if statement that is followed by some erroneous code (which makes the experiment abort). But probably there is a better solution for this.
Stephan
Comments
HI Stephan,
Try exp.end(), or experiment.end()
(My answer is inspired from line 538 on this Opensesame file on github, but untested)
Hope it helps!
Eduard