﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Trying to branch to survey between randomized blocks?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 28 Sep 2026 01:31:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Trying to branch to survey between randomized blocks?</title><link>https://forums.millisecond.com/Topic23884.aspx</link><description>Hi!&lt;br/&gt;&lt;br/&gt;I'm creating an Inquisit program to run an experiment in which we are showing participants two blocks of video stimuli (positive and negative). There are 10 videos within each block, and both the videos within the blocks and the blocks themselves are randomized between participants. Participants must answer a question (let's refer to it as "Survey A") after each video, but we would also like for participants to answer a &amp;nbsp;different survey ("Survey B") after the block has been completed. I easily managed to branch to Survey A after each video, but I can't figure out a way to branch to "survey B" only after all 10 videos have been shown. I have tried using if and trial counts, but I keep getting error messages no matter what I try. Does anyone have any ideas for how to achieve this? As a side note, I am a psychology major, and have no experience with coding like this, so I apologize if it is an easy solution!!&lt;br/&gt;&lt;br/&gt;This is what it currently looks like without the inclusion of survey B (and excluding instructions and values, etc.):&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Positive&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = Postive]&lt;br/&gt;/ ontrialend = [values.stimulusitem = video.Postive.currentitem]&lt;br/&gt;/ ontrialend = [values.encoder = video.Postive.currentitemnumber]&lt;br/&gt;/ timeout = values.stimulusduration&lt;br/&gt;/ branch = [surveypage.emotion_positive]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ posttrialpause = 1500 &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage emotion_positive&amp;gt;&lt;br/&gt;/ caption = "&amp;lt;%values.emotion%&amp;gt;"&lt;br/&gt;/ questions = [1=sequence(emotion_positive)]&lt;br/&gt;/ itemspacing = 0&lt;br/&gt;/ nextbuttonposition = (90%, 90%)&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ ontrialend = [ if (radiobuttons.emotion_positive.response &amp;lt; 4) values.emotion_accuracy = 1 else values.emotion_accuracy = 0]&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Negative&amp;gt;&lt;br/&gt;/stimulusframes = [1 = Negative]&lt;br/&gt;/ ontrialend = [values.stimulusitem = video.Negative.currentitem]&lt;br/&gt;/ ontrialend = [values.encoder = video.Negative.currentitemnumber]&lt;br/&gt;/ timeout = values.stimulusduration&lt;br/&gt;/ branch = [surveypage.emotion_negative]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ posttrialpause = 1500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage emotion_negative&amp;gt;&lt;br/&gt;/ caption = "&amp;lt;%values.emotion%&amp;gt;"&lt;br/&gt;/ questions = [1=sequence(emotion_negative)]&lt;br/&gt;/ itemspacing = 0&lt;br/&gt;/ nextbuttonposition = (90%, 90%)&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ ontrialend = [ if (radiobuttons.emotion_negative.response &amp;gt; 3) values.emotion_accuracy = 1 else values.emotion_accuracy = 0]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Positive&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Positive)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Negative&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Negative)]&lt;br/&gt;&lt;br/&gt;&amp;lt;expt &amp;gt;&lt;br/&gt;/ preinstructions = (Intro)&lt;br/&gt;/ postinstructions = (End)&lt;br/&gt;/ blocks = [1-2 = noreplacenorepeat(Negative, Positive)]&lt;br/&gt;/ onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 20 Feb 2018 08:14:04 GMT</pubDate><dc:creator>am2922</dc:creator></item><item><title>RE: Trying to branch to survey between randomized blocks?</title><link>https://forums.millisecond.com/Topic23889.aspx</link><description>&lt;div data-id="23886" class="if-quote-wrapper" unselectable="on" data-guid="1519143219634"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23886" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23886" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23886" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 19, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23886"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23884" class="if-quote-wrapper" unselectable="on" data-guid="1519143219634"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23884" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23884" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23884" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;am2922 - Saturday, February 17, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23884"&gt;&lt;div class="if-quote-message-margin"&gt;Hi!&lt;br/&gt;&lt;br/&gt;I'm creating an Inquisit program to run an experiment in which we are showing participants two blocks of video stimuli (positive and negative). There are 10 videos within each block, and both the videos within the blocks and the blocks themselves are randomized between participants. Participants must answer a question (let's refer to it as "Survey A") after each video, but we would also like for participants to answer a &amp;nbsp;different survey ("Survey B") after the block has been completed. I easily managed to branch to Survey A after each video, but I can't figure out a way to branch to "survey B" only after all 10 videos have been shown. I have tried using if and trial counts, but I keep getting error messages no matter what I try. Does anyone have any ideas for how to achieve this? As a side note, I am a psychology major, and have no experience with coding like this, so I apologize if it is an easy solution!!&lt;br/&gt;&lt;br/&gt;This is what it currently looks like without the inclusion of survey B (and excluding instructions and values, etc.):&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Positive&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = Postive]&lt;br/&gt;/ ontrialend = [values.stimulusitem = video.Postive.currentitem]&lt;br/&gt;/ ontrialend = [values.encoder = video.Postive.currentitemnumber]&lt;br/&gt;/ timeout = values.stimulusduration&lt;br/&gt;/ branch = [surveypage.emotion_positive]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ posttrialpause = 1500 &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage emotion_positive&amp;gt;&lt;br/&gt;/ caption = "&amp;lt;%values.emotion%&amp;gt;"&lt;br/&gt;/ questions = [1=sequence(emotion_positive)]&lt;br/&gt;/ itemspacing = 0&lt;br/&gt;/ nextbuttonposition = (90%, 90%)&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ ontrialend = [ if (radiobuttons.emotion_positive.response &amp;lt; 4) values.emotion_accuracy = 1 else values.emotion_accuracy = 0]&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Negative&amp;gt;&lt;br/&gt;/stimulusframes = [1 = Negative]&lt;br/&gt;/ ontrialend = [values.stimulusitem = video.Negative.currentitem]&lt;br/&gt;/ ontrialend = [values.encoder = video.Negative.currentitemnumber]&lt;br/&gt;/ timeout = values.stimulusduration&lt;br/&gt;/ branch = [surveypage.emotion_negative]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ posttrialpause = 1500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage emotion_negative&amp;gt;&lt;br/&gt;/ caption = "&amp;lt;%values.emotion%&amp;gt;"&lt;br/&gt;/ questions = [1=sequence(emotion_negative)]&lt;br/&gt;/ itemspacing = 0&lt;br/&gt;/ nextbuttonposition = (90%, 90%)&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ ontrialend = [ if (radiobuttons.emotion_negative.response &amp;gt; 3) values.emotion_accuracy = 1 else values.emotion_accuracy = 0]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Positive&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Positive)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Negative&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Negative)]&lt;br/&gt;&lt;br/&gt;&amp;lt;expt &amp;gt;&lt;br/&gt;/ preinstructions = (Intro)&lt;br/&gt;/ postinstructions = (End)&lt;br/&gt;/ blocks = [1-2 = noreplacenorepeat(Negative, Positive)]&lt;br/&gt;/ onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23884"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Add your &amp;lt;survey B&amp;gt;&amp;nbsp; or &amp;lt;block B&amp;gt; to the script, and then /branch to that &amp;lt;survey&amp;gt; or &amp;lt;block&amp;gt; from &amp;lt;block positive&amp;gt; and &amp;lt;block negative&amp;gt;:&lt;br/&gt;&lt;br/&gt;&amp;lt;block B&amp;gt;&lt;br/&gt;/ trials = [1=page_b1]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage page_b1&amp;gt;&lt;br/&gt;/ caption = "This is survey B"&lt;br/&gt;...&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Positive&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Positive)]&lt;br/&gt;/ branch = [block.b]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Negative&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Negative)]&lt;br/&gt;/ branch = [block.b]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23886"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;This worked perfectly. Thank you so much!!</description><pubDate>Tue, 20 Feb 2018 08:14:04 GMT</pubDate><dc:creator>am2922</dc:creator></item><item><title>RE: Trying to branch to survey between randomized blocks?</title><link>https://forums.millisecond.com/Topic23886.aspx</link><description>&lt;div data-id="23884" class="if-quote-wrapper" unselectable="on" data-guid="1519063840249"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23884" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23884" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23884" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;am2922 - Saturday, February 17, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23884"&gt;&lt;div class="if-quote-message-margin"&gt;Hi!&lt;br/&gt;&lt;br/&gt;I'm creating an Inquisit program to run an experiment in which we are showing participants two blocks of video stimuli (positive and negative). There are 10 videos within each block, and both the videos within the blocks and the blocks themselves are randomized between participants. Participants must answer a question (let's refer to it as "Survey A") after each video, but we would also like for participants to answer a &amp;nbsp;different survey ("Survey B") after the block has been completed. I easily managed to branch to Survey A after each video, but I can't figure out a way to branch to "survey B" only after all 10 videos have been shown. I have tried using if and trial counts, but I keep getting error messages no matter what I try. Does anyone have any ideas for how to achieve this? As a side note, I am a psychology major, and have no experience with coding like this, so I apologize if it is an easy solution!!&lt;br/&gt;&lt;br/&gt;This is what it currently looks like without the inclusion of survey B (and excluding instructions and values, etc.):&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Positive&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = Postive]&lt;br/&gt;/ ontrialend = [values.stimulusitem = video.Postive.currentitem]&lt;br/&gt;/ ontrialend = [values.encoder = video.Postive.currentitemnumber]&lt;br/&gt;/ timeout = values.stimulusduration&lt;br/&gt;/ branch = [surveypage.emotion_positive]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ posttrialpause = 1500 &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage emotion_positive&amp;gt;&lt;br/&gt;/ caption = "&amp;lt;%values.emotion%&amp;gt;"&lt;br/&gt;/ questions = [1=sequence(emotion_positive)]&lt;br/&gt;/ itemspacing = 0&lt;br/&gt;/ nextbuttonposition = (90%, 90%)&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ ontrialend = [ if (radiobuttons.emotion_positive.response &amp;lt; 4) values.emotion_accuracy = 1 else values.emotion_accuracy = 0]&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Negative&amp;gt;&lt;br/&gt;/stimulusframes = [1 = Negative]&lt;br/&gt;/ ontrialend = [values.stimulusitem = video.Negative.currentitem]&lt;br/&gt;/ ontrialend = [values.encoder = video.Negative.currentitemnumber]&lt;br/&gt;/ timeout = values.stimulusduration&lt;br/&gt;/ branch = [surveypage.emotion_negative]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ posttrialpause = 1500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage emotion_negative&amp;gt;&lt;br/&gt;/ caption = "&amp;lt;%values.emotion%&amp;gt;"&lt;br/&gt;/ questions = [1=sequence(emotion_negative)]&lt;br/&gt;/ itemspacing = 0&lt;br/&gt;/ nextbuttonposition = (90%, 90%)&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ ontrialend = [ if (radiobuttons.emotion_negative.response &amp;gt; 3) values.emotion_accuracy = 1 else values.emotion_accuracy = 0]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Positive&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Positive)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Negative&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Negative)]&lt;br/&gt;&lt;br/&gt;&amp;lt;expt &amp;gt;&lt;br/&gt;/ preinstructions = (Intro)&lt;br/&gt;/ postinstructions = (End)&lt;br/&gt;/ blocks = [1-2 = noreplacenorepeat(Negative, Positive)]&lt;br/&gt;/ onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23884"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Add your &amp;lt;survey B&amp;gt;&amp;nbsp; or &amp;lt;block B&amp;gt; to the script, and then /branch to that &amp;lt;survey&amp;gt; or &amp;lt;block&amp;gt; from &amp;lt;block positive&amp;gt; and &amp;lt;block negative&amp;gt;:&lt;br/&gt;&lt;br/&gt;&amp;lt;block B&amp;gt;&lt;br/&gt;/ trials = [1=page_b1]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage page_b1&amp;gt;&lt;br/&gt;/ caption = "This is survey B"&lt;br/&gt;...&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Positive&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Positive)]&lt;br/&gt;/ branch = [block.b]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Negative&amp;gt;&lt;br/&gt;/ trials = [1-10 = noreplacenorepeat(Negative)]&lt;br/&gt;/ branch = [block.b]&lt;br/&gt;&amp;lt;/block&amp;gt;</description><pubDate>Mon, 19 Feb 2018 10:13:56 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>