The currently selected item in the stimulus set.
<counter> <button> <clock> <html> <picture> <port> <shape> <sound> <systemBeep> <text> <video> <xid>
object.name.currentItem
Read Only
string
None.
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>