up Inquisit Language Reference

currentItem property

The currently selected item in the stimulus set.

Member of

<counter> <button> <clock> <html> <picture> <port> <shape> <sound> <systemBeep> <text> <video> <xid>

Syntax

object.name.currentItem

Read Only

Type

string

Remarks

None.

Examples

The following displays the value of currentItem in a text stimulus:

<text myText>
/ items= ("currentItem = <% text.myText.currentItem %>")
</text>

The following displays the value of currentItem in an instruction page:

<page myPage>
currentitem = <% text.myText.currentItem %>
</page>

The following code shows how to store the presented item of a dynamically presented picture element into a custom variable 'values.presentedImage' (Note that 'this' represents 'trial.presentPic' in this context). This custom variable could be stored in the raw data file for later analyses.

<trial showPic>
/ onTrialBegin = {
  this.insertStimulusTime(picture.image1, parameters.fixationDuration);
}
/ stimulusTimes = [1 = clearScreen, fixation]
/ onTrialEnd = {
  this.resetStimulusFrames();
  
  values.presentedImage = picture.image1.currentItem;
}
</trial>

Copyright Millisecond Software, LLC. All rights reserved.