up Inquisit Language Reference

questions attribute

The questions attribute specifies the sequence of questions in a survey page.

Member of

<surveyPage>

Syntax

/ questions = [questionnumber, questionnumber = questionname; questionnumber-questionnumber = selectmode(questionname, questionname,...); questionnumber, questionnumber-questionnumber = questionname]

Parameters

Name Type Description
questionnumber integer A non-negative integer specifying the question number.
questionname surveyitem The name of a question defined elsewhere in the script to be run in this survey page.
selectmode selectmodeenum
ValueDescription
constantConstant selection of a single item.
currentCurrently selected item of a stimulus or counter.
nextNext selected item of a stimulus or counter.
noReplaceRandom selection without replacement.
noReplaceCorrectRandom selection without replacement if response is correct.
noReplaceErrorRandom selection without replacement if response is incorrect.
noReplaceNoRepeatRandom selection without replacement or repeating an item.
noReplaceNotRandom selection without replacement excluding the current item.
notSynonym of noreplacenot.
randomSynonym of noreplace.
replaceRandom selection with replacement.
replaceNoRepeatRandom selection with replacement and without repeating an item.
replaceNotRandom selection with replacement excluding the current item.
sequenceSequential selection in the listed order.
serialSynonym of sequence.

Remarks

The integers to the left of the equal signs represent ordinal positions within the sequence of questions. questions can be directly assigned to a position in the sequence using the equals sign. A page can be simultaneously assigned to multiple positions by separating the position numbers with commas (equivalent to "and") or dashes (equivalent to "through"). All page numbers in the survey page must be assigned to a page.

Examples

The following survey page consists of 3 survey questions presented in fixed order:

<surveypage>
/ questions=[1=question1; 2=question2; 3=question3]
</surveypage>

The following survey page presents 4 questions in random order.

<surveypage>
/ questions=[1-4=noreplace(question1, question2, question3)]
</surveypage>

Copyright Millisecond Software, LLC. All rights reserved.