up Inquisit Language Reference

skip attribute

The skip command defines conditions in which trials or survey pages should be not be run.

Member of

<block> <likert> <openended> <survey> <surveypage> <trial>

Syntax

/ skip = [expression; expression; expression; ...]

Parameters

expression Specifies the expression to evaluate to determine whether the trial(s) should be skipped.

Remarks

The skip attribute can be used to create task flow that dynamically adapts based on the subject's performance or the current state of the script. Each condition specified in the skip command or commands is evaluated, and if any one of them is true (either logically true or producing numeric result not equal to zero), the trial is not run.

Examples

The following trial is skipped if 10 incorrect responses are given in a row.

<trial mytrial>
/ stimulusframes=[1=sometext]
/ validresponse=("a", "b")
/ correctresponse=("a")
/ skip=[trial.mytrial.errorstreak >= 10]
</trial>

The following trial is skipped if the user selected option 1 on a radio button survey item.

<trial mytrial>
/ stimulusframes=[1=sometext]
/ validresponse=("a", "b")
/ correctresponse=("a")
/ skip=[radiobuttons.choice.response == 1]
</trial>

The following block is skipped if the participants mean latency up to that point is greater than 1000.

<block myblock>
/ trials=[1-20=noreplace(testtrials, distractortrials)]
/ skip=[block.myblock.meanlatency > 1000]
</block>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.