Adds the item to the end of the list.
<list>
none
Name | Type | Description |
---|---|---|
value | value | The value for the item. |
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.
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>