up Inquisit Language Reference

appendItem function

Adds the item to the end of the stimulus item list.

Member of

<item><html><picture><port><sound><text><video><xid>

Syntax

object.name.appendItem(value)

Return Type

none

Parameters

Name Type Description
value value The value for the item.

Remarks

The appendItem function adds a value to the end of the stimulus or item list.

Examples

The following adds an item to the end of the item list of a text stimulus:

<trial myTrial>
/ onTrialEnd= {text.myText.appendItem("Hello world!");}
</trial>

The following adds an item to the end of the item list of a list:

<trial myTrial>
/ onTrialEnd= {list.importantthings.appendItem(values.newvalue);}
</trial>

Copyright Millisecond Software, LLC. All rights reserved.