Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

abort experiment at certain point

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

    Buy Me A Coffee

Sign In or Register to comment.