up Inquisit Language Reference

removeitem function

Removes an item from the list.

Member of

<html>

<list>

<picture>

<port>

<sound>

<text>

<video>

<xid>

Syntax

element.name.removeitem(index)

Parameters

Name Type Description
index integer The index of the item to remove. The first item in the list is 1.

Examples

The following removes the first item from a text stimulus:

<trial sometrial>
/ ontrialend= [text.sometext.removeitem(1);]
</trial>

The following removes the last item from the selection pool of a list:

<trial sometrial>
/ ontrialend= [list.mylist.removeitem(list.mylist.itemcount);]
</trial>

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