Millisecond Forums

Error with expt

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

By Shamba - 1/20/2015

Getting "Expression contains unknown element or property name" error for Expression 'values.completed'

<expt>
/subjects = (2 of 2)
/groupassignment = groupnumber
/ blocks = [1=targetincompatiblepractice; 2=attributepractice; 3=incompatibletest1; 4=incompatibletestinstructions;
    5=incompatibletest2; 6=targetcompatiblepractice; 7=compatibletest1; 8=compatibletestinstructions;
    9=compatibletest2; 10=summary]
/onexptend = [values.completed = 1]
</expt>



What does the /onexptend function do here and do I need to keep it?
By Dave - 1/20/2015

It sets a <values> entry to the specified value at the very end of the experiment. This particular value is supposed to indicate whether a given participant completed the script fully (then it will be 1) or quit prematurely (then the value will not be set to 1).

The error means you have -- perhaps -- mistakenly removed the value from your script or copied the <expt> element into a script that does not contain the value.

Whether to keep the /onexptend attribute or not would be for you to decide.