Jumping

Contents  Previous  Next

QuickInfo

Jumping is just like skipping except that you come back.

Details

Jumping allows you to go off and run one trial of your choosing depending on the response a subject gives. This is a convenient way to give feedback and to execute other conditional events that are based on a subject's response.

The command works exactly the same way as the skip command except the arrow goes toward the keycode (i.e., <) instead of away from it (i.e., >)

Instead of continuing from the later item, DirectRT will return and resume from the next trial.

jump

In the example above, each of the allowable responses is assigned a jump value. In this case, trials 98 and 99 are images that convey the subject was correct or wrong in their response, respectively. On each of the trials 1 through 4, it is specified which of these trials (98 or 99) to jump to on each response. As can be seen, the jump trial is displayed for 2000 ms after which the trials resume from where the jump initiated.

Note that you will likely want to insert an Unconditional Skip just before these feedback screens so that they are not displayed on their own. In the example above, a debriefing trial occurs at which time any key will skip subjects over the feedback trials.

Advanced Hint

If you have stimuli following the jump command on the same trial, DirectRT waits until the end of the trial to jump. If you want a jump to be executed mid-trial then assign a negative value to the trial ID. e.g., To break out of a trial immediately and jump to trial 100, you could indicate rt:44<-210,53<-210. Subsequent stimuli on the trial will be ignored.

See also

Skipping