up Inquisit Language Reference

insertstimulusframe function

Adds the stimulus to the specified frame of a trial.

Member of

<likert>

<openended>

<slidertrial>

<surveypage>

<trial>

Syntax

element.name.insertstimulusframe(value, index)

Parameters

Name Type Description
value stimulus The new stimulus.
index integer The index of the frame. The first item in the list is 1.

Examples

The following dynamically adds an error feedback stimulus to the trial if performance dips below 50%:

<trial sometrial>
/ ontrialend= [if (trial.sometrial.percentcorrect <= 50) trial.test.insertstimulusframe(text.errorfeedback, 1); ]
</trial>

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