up Inquisit Language Reference

responseTrial attribute

Deprecated

The responseTrial attribute specifies a trial to be run next if the subject gives a particular response on the current trial.

Member of

<trial> <likert> <openended> <sliderTrial> <surveyPage>

Syntax

/ responseTrial = (response, trialname)

Parameters

Name Type Description
responsevalue responsevalue A valid response value for the trial. See validResponse for possible response values.
trialname trial The name of a trial element defined elsewhere in the script that should be run if the specified response is given.

Remarks

This command enables conditional branching of experimental procedure based on the subject's response. A trial may contain multiple responseTrial attributes that list different trials to be run for possible responses. Inquisit evaluates each responseTrial attribute in the order specified, and the first one to match the response wins.

Examples

The following trial runs <em>happytrial</em> if the response is "a" and <em>sadtrial</em> if the response is "b":

<trial myTrial>
/ stimulusTimes = [0=myText]
/ validResponse = ("a", "b")
/ responseTrial = ("a", happytrial)
/ responseTrial = ("b", sadtrial)
</trial>

Copyright Millisecond Software, LLC. All rights reserved.