Group: Forum Members
Posts: 52,
Visits: 250
|
Hey there!
Hope all is well. I just need a tad bit of help for the following situation:
Say that you have 40 comprehension questions, some require a YES response ("E") or a NO response ("I") (one or the other, but not both). I have created lists for the respective comprehension question for each type of response (I won't paste all the comprehension question items here, but this is done in script of course):
<list Eresponse> / items = (1,2,4,5,7,11,13,16,18,26,29,34,40) / selectionmode = text.comprehension.currentindex </list>
<list Iresponse> / items = (3,6,12,15,21,23,28,30,33,39) / selectionmode = text.comprehension.currentindex </list>
Thus, when it comes to the trial, I am telling Inquisit to register what is 'correct'. For example, if they are presented with (question) item 1 from above, then this requires E (yes) to be pressed, as it belongs to the Eresponse list. If they press I, then this is incorrect. This is what I have so far for the trial code:
<trial comprehension> / stimulusframes = [1=text.comprehension] / validresponse = ("E", "I") / iscorrectresponse = (trial.comprehension.response == list.Eresponse.nextvalue....
But this means iscorrectresponse is only dealing with the Eresponses?, I am unsure as to code up to ensure that a correct response depends on which type of comprehension question it belongs to - list E (for yes) or list I (for no). This is where I am stuck. I considered using <values> but could not fathom it.
Dave has already allowed me to make huge progress with this experiment I am running (with a full Inquisit license) and relates to my recent post titled 'branching' (about adapting LDT to incorporate scenarios, comprehension questions etc). Well It has all come together thanks to that single piece of advice thus far, so thank you so much. It is just this part I have run into bother with. I reckon I should be okay after this point.
The script is simple, and it works and runs the task, and so thought I'd attach here just in case (I know your amazing expertise allows you to understand what's going on straight away!)
Thank you kindly Yours Sincerely Anthony
|