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 Copyright Millisecond Software, LLC. All rights reserved.