## Repeating trial if response is false

 Author Message Karoline  Associate Member         Group: Awaiting Activation Posts: 6, Visits: 46 Hello all, I'm a new member, so I hope that my question hasn`t been answered before or is pretty easy to answer. I have actually found one discussion (https://www.millisecond.com/forums/Topic20404.aspx) that quite seemed to resemble my question, but I still couldn't  solve my problem. So I would be very thankful for any help!In my experiment people should sequentially perform three different tasks and afterwards answer some questions on these tasks. They can choose the order of these tasks by answering the question which of the tasks is most scary, which second, which third... The tasks should then be presented in this order. Programming the experiment I decided on first presenting one item, with which people can decide on the first task to do:/ 1 = "N-Back_1.jpg"/ items = Expo_1_stimulus/ select = noreplace/ size = (70%, 70%)/stimulustimes = [0=Expo_1_pic]/validresponse = (1, 2, 3, 4)/ontrialend = [values.Expo_1 = Trial.BedingungB_Expo_1.response-1]/Trials = [1=BedingungB_Expo_1]/branch = [if (values.Expo_1 == 1) block.film]/branch = [if (values.Expo_1 == 2) block.hyperventilation]/branch = [if (values.Expo_1 == 3) block.imagination]Afterwards there is a second item enabling people to decide which task they want to perform second. Now, there is my problem: I want to eliminate the possibility to again choose the same task as before. If done so, I want to show an errormessage and "repeat" the trial. I've programmed so far, that the error message is shown correctly but the trial doesn't repeat. Changing the block (/Trials = [1-2 = BedingungB_Expo_1] instead of /Trials = [1 = BedingungB_Expo_1]) does allow repetition but repeats the trial no matter if the response was correct or false:/ 1 = "N-Back_2.jpg"/items = Expo_2_stimulus/select = 1/size = (70%, 70%)/ items= "Fehler"/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)/ txcolor = (255, 0, 0)/ Position = (50%, 70%)/stimulustimes = [0=errorfeedback]/validresponse = (0)/trialduration = 2000/stimulustimes = [0=Expo_2_pic]/validresponse = (1, 2, 3, 4)/iscorrectresponse = [(Trial.BedingungB_Expo_2.response-1) != values.Expo_1]/branch = [if (Trial.BedingungB_Expo_2.error) sequence (Trial.errorfeedback, Trial BedingungB_Expo_2)]/ontrialend = [values.Expo_2 = Trial.BedingungB_Expo_2.response-1]/ Trials = [1 = BedingungB_Expo_2]/ branch = [if (values.Expo_2 == 1) block.film]/ branch = [if (values.Expo_2 == 2) block.hyperventilation]/ branch = [if (values.Expo_2 == 3) block.imagination]Is there any good way to solve my problem?Thanks in advance for your help!! Dave  Supreme Being         Group: Administrators Posts: 9.5K, Visits: 42K +xKaroline - Wednesday, September 26, 2018Hello all, I'm a new member, so I hope that my question hasn`t been answered before or is pretty easy to answer. I have actually found one discussion (https://www.millisecond.com/forums/Topic20404.aspx) that quite seemed to resemble my question, but I still couldn't  solve my problem. So I would be very thankful for any help!In my experiment people should sequentially perform three different tasks and afterwards answer some questions on these tasks. They can choose the order of these tasks by answering the question which of the tasks is most scary, which second, which third... The tasks should then be presented in this order. Programming the experiment I decided on first presenting one item, with which people can decide on the first task to do:/ 1 = "N-Back_1.jpg"/ items = Expo_1_stimulus/ select = noreplace/ size = (70%, 70%)/stimulustimes = [0=Expo_1_pic]/validresponse = (1, 2, 3, 4)/ontrialend = [values.Expo_1 = Trial.BedingungB_Expo_1.response-1]/Trials = [1=BedingungB_Expo_1]/branch = [if (values.Expo_1 == 1) block.film]/branch = [if (values.Expo_1 == 2) block.hyperventilation]/branch = [if (values.Expo_1 == 3) block.imagination]Afterwards there is a second item enabling people to decide which task they want to perform second. Now, there is my problem: I want to eliminate the possibility to again choose the same task as before. If done so, I want to show an errormessage and "repeat" the trial. I've programmed so far, that the error message is shown correctly but the trial doesn't repeat. Changing the block (/Trials = [1-2 = BedingungB_Expo_1] instead of /Trials = [1 = BedingungB_Expo_1]) does allow repetition but repeats the trial no matter if the response was correct or false:/ 1 = "N-Back_2.jpg"/items = Expo_2_stimulus/select = 1/size = (70%, 70%)/ items= "Fehler"/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)/ txcolor = (255, 0, 0)/ Position = (50%, 70%)/stimulustimes = [0=errorfeedback]/validresponse = (0)/trialduration = 2000/stimulustimes = [0=Expo_2_pic]/validresponse = (1, 2, 3, 4)/iscorrectresponse = [(Trial.BedingungB_Expo_2.response-1) != values.Expo_1]/branch = [if (Trial.BedingungB_Expo_2.error) sequence (Trial.errorfeedback, Trial BedingungB_Expo_2)]/ontrialend = [values.Expo_2 = Trial.BedingungB_Expo_2.response-1]/ Trials = [1 = BedingungB_Expo_2]/ branch = [if (values.Expo_2 == 1) block.film]/ branch = [if (values.Expo_2 == 2) block.hyperventilation]/ branch = [if (values.Expo_2 == 3) block.imagination]Is there any good way to solve my problem?Thanks in advance for your help!!/stimulustimes = [0=Expo_2_pic]/validresponse = (1, 2, 3, 4)/iscorrectresponse = [(Trial.BedingungB_Expo_2.response-1) != values.Expo_1]/branch = [if (Trial.BedingungB_Expo_2.error) sequence (Trial.errorfeedback, Trial BedingungB_Expo_2)]/ontrialend = [values.Expo_2 = Trial.BedingungB_Expo_2.response-1]This is not how /branch-ing works. You cannot /branch to two trials. From you need to /branch to . From you can then /branch back to . I.e./stimulustimes = [0=Expo_2_pic]/validresponse = (1, 2, 3, 4)/iscorrectresponse = [(Trial.BedingungB_Expo_2.response-1) != values.Expo_1]/branch = [if (Trial.BedingungB_Expo_2.error) Trial.errorfeedback]/ontrialend = [values.Expo_2 = Trial.BedingungB_Expo_2.response-1]/stimulustimes = [0=errorfeedback]/validresponse = (0)/trialduration = 2000/ branch = [trial.BedingungB_Expo_2] Karoline  Associate Member         Group: Awaiting Activation Posts: 6, Visits: 46 +xDave - Wednesday, September 26, 2018+xKaroline - Wednesday, September 26, 2018Hello all, I'm a new member, so I hope that my question hasn`t been answered before or is pretty easy to answer. I have actually found one discussion (https://www.millisecond.com/forums/Topic20404.aspx) that quite seemed to resemble my question, but I still couldn't  solve my problem. So I would be very thankful for any help!In my experiment people should sequentially perform three different tasks and afterwards answer some questions on these tasks. They can choose the order of these tasks by answering the question which of the tasks is most scary, which second, which third... The tasks should then be presented in this order. Programming the experiment I decided on first presenting one item, with which people can decide on the first task to do:/ 1 = "N-Back_1.jpg"/ items = Expo_1_stimulus/ select = noreplace/ size = (70%, 70%)/stimulustimes = [0=Expo_1_pic]/validresponse = (1, 2, 3, 4)/ontrialend = [values.Expo_1 = Trial.BedingungB_Expo_1.response-1]/Trials = [1=BedingungB_Expo_1]/branch = [if (values.Expo_1 == 1) block.film]/branch = [if (values.Expo_1 == 2) block.hyperventilation]/branch = [if (values.Expo_1 == 3) block.imagination]Afterwards there is a second item enabling people to decide which task they want to perform second. Now, there is my problem: I want to eliminate the possibility to again choose the same task as before. If done so, I want to show an errormessage and "repeat" the trial. I've programmed so far, that the error message is shown correctly but the trial doesn't repeat. Changing the block (/Trials = [1-2 = BedingungB_Expo_1] instead of /Trials = [1 = BedingungB_Expo_1]) does allow repetition but repeats the trial no matter if the response was correct or false:/ 1 = "N-Back_2.jpg"/items = Expo_2_stimulus/select = 1/size = (70%, 70%)/ items= "Fehler"/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)/ txcolor = (255, 0, 0)/ Position = (50%, 70%)/stimulustimes = [0=errorfeedback]/validresponse = (0)/trialduration = 2000/stimulustimes = [0=Expo_2_pic]/validresponse = (1, 2, 3, 4)/iscorrectresponse = [(Trial.BedingungB_Expo_2.response-1) != values.Expo_1]/branch = [if (Trial.BedingungB_Expo_2.error) sequence (Trial.errorfeedback, Trial BedingungB_Expo_2)]/ontrialend = [values.Expo_2 = Trial.BedingungB_Expo_2.response-1]/ Trials = [1 = BedingungB_Expo_2]/ branch = [if (values.Expo_2 == 1) block.film]/ branch = [if (values.Expo_2 == 2) block.hyperventilation]/ branch = [if (values.Expo_2 == 3) block.imagination]Is there any good way to solve my problem?Thanks in advance for your help!!/stimulustimes = [0=Expo_2_pic]/validresponse = (1, 2, 3, 4)/iscorrectresponse = [(Trial.BedingungB_Expo_2.response-1) != values.Expo_1]/branch = [if (Trial.BedingungB_Expo_2.error) sequence (Trial.errorfeedback, Trial BedingungB_Expo_2)]/ontrialend = [values.Expo_2 = Trial.BedingungB_Expo_2.response-1]This is not how /branch-ing works. You cannot /branch to two trials. From you need to /branch to . From you can then /branch back to . I.e./stimulustimes = [0=Expo_2_pic]/validresponse = (1, 2, 3, 4)/iscorrectresponse = [(Trial.BedingungB_Expo_2.response-1) != values.Expo_1]/branch = [if (Trial.BedingungB_Expo_2.error) Trial.errorfeedback]/ontrialend = [values.Expo_2 = Trial.BedingungB_Expo_2.response-1]/stimulustimes = [0=errorfeedback]/validresponse = (0)/trialduration = 2000/ branch = [trial.BedingungB_Expo_2]That solved the problem!! Thank you very much for your instant reply and help!

## Reading This Topic

##### Login
 Existing Account Email Address: Password: Remember Me Social Logins
##### Select a Forum....
 Millisecond Forums      Millisecond Software News      Inquisit 5      Inquisit 4      Inquisit 3      Inquisit 2.0      Inquisit 1.33 (archives)