Millisecond Forums

lastlavel vs finishlabel

https://forums.millisecond.com/Topic14721.aspx

By kulajw - 10/25/2014

Hi All

I try to create pre and post instruction, I have script like this:

<page 1>
text
</page>
<page 2>
text
</page>
<page 3>
text
</page>
<page 4>
text
</page>
<page 5>
text
</page>

<instruct>
/ fontstyle = ("Verdana", 12pt, true)
/ windowsize = (800px, 600px)
/ wait = 1000
/ lastlabel = ("Start main task")
/ nextlabel = ("Next")
/ prevlabel = ("Previous")
/ finishlabel =( "Clik to finish exsperiment")
/ inputdevice = mouse
</instruct>

<block a>
/preinstructions = (1,2,3)
some trials
/postinstructions = (4,5)
</block>

I would like to have lastlabel button on page 3  with text: "Start main task" and finishlabel  button on page 5 with text "Clik to finish experiment".
Problem is I have either lastlabel text or finshlabel text on both pages.

Have you any idea how can I fix it?

Thanks for help ;)



By Dave - 10/25/2014

/lastlabel and /finishlabel are identical. Both affect the label for the final page in a given set. I.e.

/preinstructions = (1,2,3)

#3 in the above and #5 in the below:

/postinstructions = (4,5)

If you want to change the label, you can do so by setting the instruct.finishlabel property at runtime:

<instruct>
/ finishlabel = "Label"
</instruct>

<page a>
...
</page>

<page b>
...
</page>

<block myblock>
/ onblockend = [instruct.finishlabel="Different Label"]
/ preinstructions = (a)
/ postinstructions = (b)
</block>
By kulajw - 10/26/2014

Thanks it works perfect !

Thank you :)