Millisecond Forums

Chaning Correct Response from trial to trial

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

By bwilkows - 7/26/2013

I'd like to be able to change the correct answer for a trial object from trial to trial, depending on other events that happen in the block earlier. I figured I could use expressions in the /correctresponse attribute of a trial element to change the correct response from trial to trial. I got the program to run this way. However, it's just telling me my response is incorrect on every trial (even when I rigged it to know I have the correct answer).


Here's one of the trial elements where I attempted to program the /correctresponse attribute in this manner. Participants are supposed to count how many words of a certain type are presented in a block and then report their count during this trial. The /correctresponse attribute in this trial attribute currently uses an expression that should count the number of trials in the same block in which the relevant word type is presented.


<trial OrangeAggCountReport>
/stimulustimes = [0=OrangeAggCountReport]
/validresponse = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "0")
/correctresponse = count(trial.orangeaggword)
/errormessage = true(ErrorOrangeAgg, 2000)
</trial>


Is there a way to change this script so that the participants' correct responses are registered as correct? Or do I just have to create a ton of CountReport trial elements that have every possible correct answer?


I attached the full script in case that is helpful.

By Dave - 7/26/2013

You need to use a valid boolean expression via the /iscorrectresponse attribute, not /correctresponse.