up Inquisit Language Reference

appendItem function

Adds the item to the end of the list.

Member of

<list>

Syntax

list.name.appendItem(value)

Return Type

none

Parameters

Name Type Description
value value The value for the item.

Remarks

The appendItem function inserts a value at the end of the list. When called on a list element, for example, the function inserts an item into the selection pool item. This function causes the list size to grow by one.

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.