+x peter - 10/7/2022Hi, I have been asked to tweak my script so that the practice trials end if the participant responds to 8 out of the last 10 trials correctly. This is probably super easy but I cant seem to figure it out. Any help greatly appreciated. Thanks Peter
+x Dave - 10/7/2022+x peter - 10/7/2022Hi, I have been asked to tweak my script so that the practice trials end if the participant responds to 8 out of the last 10 trials correctly. This is probably super easy but I cant seem to figure it out. Any help greatly appreciated. Thanks PeterIf you want an answer, you need to provide your script. Nobody can tell you how to tweak it otherwise.
+x Dave - 10/7/2022+x Dave - 10/7/2022+x peter - 10/7/2022Hi, I have been asked to tweak my script so that the practice trials end if the participant responds to 8 out of the last 10 trials correctly. This is probably super easy but I cant seem to figure it out. Any help greatly appreciated. Thanks PeterIf you want an answer, you need to provide your script. Nobody can tell you how to tweak it otherwise.Here's a generic example:<list practice_acc>/ items = (0,0,0,0,0,0,0,0,0,0)</list><expressions>/ ncorr_last_10 = { list.practice_acc.item(1) + list.practice_acc.item(2) + list.practice_acc.item(3) + list.practice_acc.item(4) + list.practice_acc.item(5) + list.practice_acc.item(6) + list.practice_acc.item(7) + list.practice_acc.item(8) + list.practice_acc.item(9) + list.practice_acc.item(10)};</expressions><expt>/ blocks = [1=practiceblock]</expt><block practiceblock>/ stop = [ expressions.ncorr_last_10 >= 8;]/ trials = [1-100 = practicetrial]</block><trial practicetrial>/ ontrialend = [ list.practice_acc.insertitem(trial.practicetrial.correct, 1);]/ stimulusframes = [1=practicetext, info]/ validresponse = ("a", "b")/ correctresponse = ("a")</trial><text practicetext>/ items = ("Press 'A' or 'B'(A = correct; B = wrong)")/ size = (80%, 20%)</text><text info>/ items = ("<%expressions.ncorr_last_10%> out of the last 10 trials correct")/ position = (50%, 10%)</text>