up Inquisit Language Reference

currentBlockNumber property

The ordinal number of the currently running block.

Member of

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

Syntax

object.name.currentBlockNumber

Read Only

Type

integer

Remarks

This value increments each time a block is run. This number also includes blocks run via branch commands.

Examples

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

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

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

<page myPage>
currentblocknumber = <% expt.currentBlockNumber %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.