Millisecond Forums

'Expressions' Error Message only in Inquisit 3

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

By cmg3gf - 2/23/2015

I get this error message every time I try to run this script in inquisit 3 but not in inquisit 4... Is there something I can do to tweak the script to get it to run? I need a separate 'expressions' definition for my three conditions, but it says that it is defined more than once as an error. 

Parsing elements...
 <expressions pastpresent> is defined more than once. 
<expressions pastpresentplus> is defined more than once.

Here is an example of my 'expressions' script.

<expressions pastpresent >
/ correctionvalue = (display.width - picture.pastpresent.width) / 2
/ correctedscore = (trial.pastpresent.responsex - expressions.correctionvalue) / picture.pastpresent.width * 100
/ roundedvalue = format("%.2f", expressions.correctedscore)
</expressions>

The only thing that changes between conditions is the name.

Thank you in advance!
By Dave - 2/23/2015

Inquisit 4 allows you to have multiple <expressions> elements in a given script, Inquisit 3 does not. You need to consolidate your <expressions> elements into a single one if you want to run the script under Inquisit 3. I.e., if you have

<expressions a>
/ someexpression = ...
/ someotherexpression =
</expressions>

<expressions b>
/ anotherexpression = ...
/ yetanotherexpression = ...
</expressions>

you need to merge them for Inquisit 3 compatibility:

<expressions>
/ someexpression = ...
/ someotherexpression =
/ anotherexpression = ...
/ yetanotherexpression = ...
</expressions>

The same is true for <values> elements.
By cmg3gf - 2/23/2015

That worked! Thank you so much, I appreciate it!