up Inquisit Language Reference

content property

The textual content of an instruction page.

Member of

<page> <htmlPage>

Syntax

page.name.content

Read/Write

Type

string

Remarks

Examples

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

<text myText>
/ items= ("content = <% page.myPage.content %>")
</text>

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

<page myPage>
content = <% htmlpage.myPage.content %>
</page>

The following code edits the content of page.instruct slighly for a repeat of block.practice due to low practice performance. Specifically, it adds 'Try again!' to the original content of the page before block.practice is repeated.

<block practice>
/ preInstructions = (instruct1)
/ trials = [1 = practice]
/ branch = {
  if (trial.practice.error){
    page.instruct1.content = "Try again!<br>" + page.instruct1.content;  
    return block.practice;
  }
  return null;
}
</block>

Copyright Millisecond Software, LLC. All rights reserved.