Script 7.5. Skipping parts Demo Experiment Run Experiment

Script 7.5. Skipping parts

Jaap Murre


Skipping the parts a subject has already done

Suppose, your experiment consists of three parts, say two memory tasks followed by a sleep survey. A subject does the memory tasks but then needs to do something else and turns off her computer. Later that day she remembers she still need to finish the survey part, turns her computer back on and surfs back to your experiment. To her great annoyance she has to do the memory tasks again and she decides not to bother with the experiment anymore. How can you prevent this situation?

Annotation with the script

When a subject does this script for the first time, `bookmark` is 0 and the first part will be done. If the subject does task 1 (i.e., press 1) and then closes the webpage, the value of `bookmark` is stored as 1. On opening the experiment again, the usual Landing Page is shown, but now when subject presses the Start button, he or she skips the first part and is now asked to press 2.

If the subject completes the entire experiment and then returns to it later, he or she will start over from the beginning, as a second experimental session will be created with a new subject. The reason is that the system has no way of finding out whether the same person is doing the experiment again or a friend, relative or other person who has access to the same computer. 

If you are a registered user and signed in, you can here copy this script and its stimuli to your own account, where you can edit it and change it in any way you want.

It is absolutely free to register (no credit card info asked!). You can then instantly copy this experiment with one click and edit it, change its accompanying texts, its landing page, stimuli, etc. Invite your colleagues, friends, or students to check out your experiment. There is no limit on how many people can do your experiment, even with a free account.

The catch? There is no catch! Just keep in mind that with a free account, you cannot collect data. For teaching that is usually not a problem. For research, prepaid data collection (unlimited subjects) starts as low as €10.00 for a 10-day period.

var bookmark = retrieve("Where","subject") || 0;

if (bookmark < 1)
{
    text("Press '1'"); // dummy task
    awaitkey('1');
    store(1,"Where","subject");
}

if (bookmark < 2)
{
    text("Press '2'"); // dummy task
    awaitkey('2');
    store(2,"Where","subject");
}

if (bookmark < 3)
{
    text("Press '3'"); // dummy task
    awaitkey('3');
    store(3,"Where","subject");
}

text("Experiment completed!");
This experiment has no files of this type
This experiment has no files of this type
This experiment has no files of this type
This experiment has no YouTube links
This experiment has no files of this type