up Inquisit Language Reference

currentTrialNumber property

The number of the currently running trial.

Member of

<block> <survey> <expt> <script>

Syntax

object.name.currentTrialNumber

Read Only

Type

integer

Remarks

This value increments each time a trial is run.

Examples

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

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

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

<page myPage>
currenttrialnumber = <% script.currentTrialNumber %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.