up Inquisit Language Reference

blocks attribute

The blocks attribute specifies the sequence of blocks to run in the experiment.

Member of

<expt>

Syntax

/ blocks = [blocknumber, blocknumber = blockname;blocknumber = listname; blocknumber-blocknumber = selectMode(blockname, blockname,...); blocknumber, blocknumber-blocknumber = blockname]

Parameters

Name Type Description
blocknumber integer A non-negative integer specifying the block number.
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.
listname list The name of a list element containing a set of blocks.
blockname block The name of a block defined elsewhere in the script to be run on this block.

Remarks

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

Examples

This example runs five blocks selected from a list element called 'blockselector':

<expt example>
/ blocks=[1-5=blockselector]
</expt>

The first five blocks of the following block are practiceblock, and the last five blocks are testblock:

<expt>
/ blocks=[1-5=practiceblock; 6-10=testblock]
</expt>

The following expt randomly selects either leftblock or rightblock for each of its ten blocks. Both block types are run exactly five times.

<expt>
/ blocks=[1-10=noreplace(leftblock, rightblock]
</expt>

The following expt randomly selects either testblock or distractorblock for each of its 12 blocks. The testblock is run exactly 8 time and distractorblock is run 4 times.

<expt>
/ blocks=[1-12=noreplace(testblock, testblock, distractorblock)]
</expt>

The following expt runs bigblock on even numbered blocks and littleblock on odd numbered blocks.

<expt>
/ blocks=[1,3,5,7,9 = littleblock; 2,4,6,8,10 = bigblock]
</expt>

Copyright Millisecond Software, LLC. All rights reserved.