Chaning Correct Response from trial to trial


Author
Message
bwilkows
bwilkows
Partner Member (508 reputation)Partner Member (508 reputation)Partner Member (508 reputation)Partner Member (508 reputation)Partner Member (508 reputation)Partner Member (508 reputation)Partner Member (508 reputation)Partner Member (508 reputation)Partner Member (508 reputation)
Group: Forum Members
Posts: 5, Visits: 1

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.


Attachments
AttWMAC.zip (115 views, 1.00 KB)
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search