up Inquisit Language Reference

trialCount property

The number of trials that have been run within the given element within the current block.

Member of

<block> <expt> <likert> <openended> <sliderTrial> <survey> <surveyPage> <trial> <script>

Syntax

object.name.trialCount

Read Only

Type

integer

Remarks

If the element is a block, this property returns the total number of trials run in the block regardless of trial type. If the element is a trial, this returns the number of times that type of trial was run within the block.

Examples

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

<text myText>
/ items= ("trialCount = <% trial.myTrial.trialCount %>")
</text>

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

<page myPage>
trialCount = <% trial.myTrial.trialCount %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.