﻿<?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  » branching a block</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 13 Sep 2026 11:38:26 GMT</lastBuildDate><ttl>20</ttl><item><title>branching a block</title><link>https://forums.millisecond.com/Topic30367.aspx</link><description>We are working on a task where participants watch a video and answer a question about the video by typing in their response. If they type in the wrong response (anything but the letter L), we want them to be told of their mistake and then go back and watch the video again, and then take the little quiz where they provide an answer. If they provide the answer incorrectly for the second time, we want them to see a message telling them the program will quit, and then the study ends. If they type the correct answer initially or on their second attempt, we want them to be able to move on to the block called pretest.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;We have found that for whatever reason, our branching does not work. Below is our code where the branching takes place: &lt;br/&gt;&lt;br/&gt;&amp;lt;openended characterresponse&amp;gt;&lt;br/&gt;/ stimulusframes = [1=VidACinstruct]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ position = (50, 45)&lt;br/&gt;/ linelength = 75&lt;br/&gt;/ numlines = 2&lt;br/&gt;/ charlimit = 10&lt;br/&gt;/ buttonlabel = "Submit"&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ branch = [if (contains(openended.characterresponse.response, "L") == true) block.pretest; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial == 0) trial.videoerror1; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial != 0) trial.videoerror2]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror1&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1=VidACerror1; 2= MCCinstructions; ]&lt;br/&gt;/ ontrialend = [openended.characterresponse]&lt;br/&gt;/ ontrialbegin = [values.incorrectresponsetrial = 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror2&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1= ACerrormessage]&lt;br/&gt;/ ontrialend = [values.incorrectresponsetrial = 2]&lt;br/&gt;/ quit = [ values.incorrectresponsetrial == 2] &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt Pretest&amp;gt;&lt;br/&gt;/ blocks = [1= consentform; 2=MCCvid; 3= VideoQ;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values incorrectresponsetrial&amp;gt;&lt;br/&gt;/ incorrectresponsetrial = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;We are also confused about what we should put in our experiment. Currently, we have these three blocks, however, even if the person types the correct answer in VideoQ it is not branching to our Pretest block like we want. When we added  4=pretest; 5=demographics; to our experiment, regardless if they answer the question in VideoQ incorrectly, they moved on to our Pretest block.&lt;br/&gt;&lt;br/&gt;Please help, we have tried different ways of writing the branching and putting it in different elements and nothing is working. Thank you!</description><pubDate>Mon, 07 Dec 2020 17:28:10 GMT</pubDate><dc:creator>xizhouxie</dc:creator></item><item><title>RE: branching a block</title><link>https://forums.millisecond.com/Topic30371.aspx</link><description>&lt;blockquote data-id="30370" class="if-quote-wrapper" unselectable="on" data-guid="1607362078454" id="if_insertedNode_1607362077267" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30370" 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="30370" 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="30370" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30370"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30369" class="if-quote-wrapper" unselectable="on" data-guid="1607362078454" id="if_insertedNode_1607361817674" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30369" 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="30369" 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="30369" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;xizhouxie - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30369"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30368" class="if-quote-wrapper" unselectable="on" data-guid="1607362078454" id="if_insertedNode_1607361507273" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30368" 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="30368" 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="30368" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30368"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30367" class="if-quote-wrapper" unselectable="on" data-guid="1607362078454" id="if_insertedNode_1607360801525" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30367" 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="30367" 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="30367" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;xizhouxie - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30367"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;We are working on a task where participants watch a video and answer a question about the video by typing in their response. If they type in the wrong response (anything but the letter L), we want them to be told of their mistake and then go back and watch the video again, and then take the little quiz where they provide an answer. If they provide the answer incorrectly for the second time, we want them to see a message telling them the program will quit, and then the study ends. If they type the correct answer initially or on their second attempt, we want them to be able to move on to the block called pretest.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;We have found that for whatever reason, our branching does not work. Below is our code where the branching takes place: &lt;br/&gt;&lt;br/&gt;&amp;lt;openended characterresponse&amp;gt;&lt;br/&gt;/ stimulusframes = [1=VidACinstruct]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ position = (50, 45)&lt;br/&gt;/ linelength = 75&lt;br/&gt;/ numlines = 2&lt;br/&gt;/ charlimit = 10&lt;br/&gt;/ buttonlabel = "Submit"&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ branch = [if (contains(openended.characterresponse.response, "L") == true) block.pretest; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial == 0) trial.videoerror1; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial != 0) trial.videoerror2]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror1&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1=VidACerror1; 2= MCCinstructions; ]&lt;br/&gt;/ ontrialend = [openended.characterresponse]&lt;br/&gt;/ ontrialbegin = [values.incorrectresponsetrial = 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror2&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1= ACerrormessage]&lt;br/&gt;/ ontrialend = [values.incorrectresponsetrial = 2]&lt;br/&gt;/ quit = [ values.incorrectresponsetrial == 2] &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt Pretest&amp;gt;&lt;br/&gt;/ blocks = [1= consentform; 2=MCCvid; 3= VideoQ;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values incorrectresponsetrial&amp;gt;&lt;br/&gt;/ incorrectresponsetrial = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;We are also confused about what we should put in our experiment. Currently, we have these three blocks, however, even if the person types the correct answer in VideoQ it is not branching to our Pretest block like we want. When we added  4=pretest; 5=demographics; to our experiment, regardless if they answer the question in VideoQ incorrectly, they moved on to our Pretest block.&lt;br/&gt;&lt;br/&gt;Please help, we have tried different ways of writing the branching and putting it in different elements and nothing is working. Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="30367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;openended characterresponse&amp;gt;&lt;br/&gt;/ stimulusframes = [1=VidACinstruct]&amp;nbsp; &lt;br/&gt;/ position = (50, 45)&lt;br/&gt;/ linelength = 75&lt;br/&gt;/ numlines = 2&lt;br/&gt;/ charlimit = 10&lt;br/&gt;/ buttonlabel = "Submit"&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;&lt;strong&gt;/ branch = [if (contains(openended.characterresponse.response, "L") == true) block.pretest;&lt;/strong&gt;&lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial == 0) trial.videoerror1;&lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial != 0) trial.videoerror2]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;An &amp;lt;openended&amp;gt; element is a &amp;lt;trial&amp;gt;. A trial cannot branch to a block. It can only branch to a trial. Only a block can branch to a different block.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30368"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;so should i put this intire branch within the block that this trial is in&lt;a class="if-quote-goto quote-link" href="#" data-id="30369"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Yes. Except at least in the code you posted, whatever block that is is not included and Icannot correct syntax that I do not have.&lt;a class="if-quote-goto quote-link" href="#" data-id="30370"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/forums/FindPost30349.aspx"&gt;https://www.millisecond.com/forums/FindPost30349.aspx&lt;/a&gt; might be useful as an example.&lt;br/&gt;</description><pubDate>Mon, 07 Dec 2020 17:28:10 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: branching a block</title><link>https://forums.millisecond.com/Topic30370.aspx</link><description>&lt;blockquote data-id="30369" class="if-quote-wrapper" unselectable="on" data-guid="1607361819301" id="if_insertedNode_1607361817674" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30369" 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="30369" 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="30369" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;xizhouxie - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30369"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30368" class="if-quote-wrapper" unselectable="on" data-guid="1607361819301" id="if_insertedNode_1607361507273" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30368" 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="30368" 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="30368" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30368"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30367" class="if-quote-wrapper" unselectable="on" data-guid="1607361819301" id="if_insertedNode_1607360801525" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30367" 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="30367" 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="30367" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;xizhouxie - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30367"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;We are working on a task where participants watch a video and answer a question about the video by typing in their response. If they type in the wrong response (anything but the letter L), we want them to be told of their mistake and then go back and watch the video again, and then take the little quiz where they provide an answer. If they provide the answer incorrectly for the second time, we want them to see a message telling them the program will quit, and then the study ends. If they type the correct answer initially or on their second attempt, we want them to be able to move on to the block called pretest.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;We have found that for whatever reason, our branching does not work. Below is our code where the branching takes place: &lt;br/&gt;&lt;br/&gt;&amp;lt;openended characterresponse&amp;gt;&lt;br/&gt;/ stimulusframes = [1=VidACinstruct]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ position = (50, 45)&lt;br/&gt;/ linelength = 75&lt;br/&gt;/ numlines = 2&lt;br/&gt;/ charlimit = 10&lt;br/&gt;/ buttonlabel = "Submit"&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ branch = [if (contains(openended.characterresponse.response, "L") == true) block.pretest; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial == 0) trial.videoerror1; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial != 0) trial.videoerror2]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror1&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1=VidACerror1; 2= MCCinstructions; ]&lt;br/&gt;/ ontrialend = [openended.characterresponse]&lt;br/&gt;/ ontrialbegin = [values.incorrectresponsetrial = 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror2&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1= ACerrormessage]&lt;br/&gt;/ ontrialend = [values.incorrectresponsetrial = 2]&lt;br/&gt;/ quit = [ values.incorrectresponsetrial == 2] &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt Pretest&amp;gt;&lt;br/&gt;/ blocks = [1= consentform; 2=MCCvid; 3= VideoQ;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values incorrectresponsetrial&amp;gt;&lt;br/&gt;/ incorrectresponsetrial = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;We are also confused about what we should put in our experiment. Currently, we have these three blocks, however, even if the person types the correct answer in VideoQ it is not branching to our Pretest block like we want. When we added  4=pretest; 5=demographics; to our experiment, regardless if they answer the question in VideoQ incorrectly, they moved on to our Pretest block.&lt;br/&gt;&lt;br/&gt;Please help, we have tried different ways of writing the branching and putting it in different elements and nothing is working. Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="30367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;openended characterresponse&amp;gt;&lt;br/&gt;/ stimulusframes = [1=VidACinstruct]&amp;nbsp; &lt;br/&gt;/ position = (50, 45)&lt;br/&gt;/ linelength = 75&lt;br/&gt;/ numlines = 2&lt;br/&gt;/ charlimit = 10&lt;br/&gt;/ buttonlabel = "Submit"&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;&lt;strong&gt;/ branch = [if (contains(openended.characterresponse.response, "L") == true) block.pretest;&lt;/strong&gt;&lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial == 0) trial.videoerror1;&lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial != 0) trial.videoerror2]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;An &amp;lt;openended&amp;gt; element is a &amp;lt;trial&amp;gt;. A trial cannot branch to a block. It can only branch to a trial. Only a block can branch to a different block.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30368"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;so should i put this intire branch within the block that this trial is in&lt;a class="if-quote-goto quote-link" href="#" data-id="30369"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Yes. Except at least in the code you posted, whatever block that is is not included and Icannot correct syntax that I do not have.</description><pubDate>Mon, 07 Dec 2020 17:25:32 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: branching a block</title><link>https://forums.millisecond.com/Topic30369.aspx</link><description>&lt;blockquote data-id="30368" class="if-quote-wrapper" unselectable="on" data-guid="1607361507953" contenteditable="false" id="if_insertedNode_1607361507273"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30368" 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="30368" 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="30368" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30368"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="30367" class="if-quote-wrapper" unselectable="on" data-guid="1607361507953" id="if_insertedNode_1607360801525" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30367" 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="30367" 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="30367" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;xizhouxie - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30367"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;We are working on a task where participants watch a video and answer a question about the video by typing in their response. If they type in the wrong response (anything but the letter L), we want them to be told of their mistake and then go back and watch the video again, and then take the little quiz where they provide an answer. If they provide the answer incorrectly for the second time, we want them to see a message telling them the program will quit, and then the study ends. If they type the correct answer initially or on their second attempt, we want them to be able to move on to the block called pretest.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;We have found that for whatever reason, our branching does not work. Below is our code where the branching takes place: &lt;br/&gt;&lt;br/&gt;&amp;lt;openended characterresponse&amp;gt;&lt;br/&gt;/ stimulusframes = [1=VidACinstruct]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ position = (50, 45)&lt;br/&gt;/ linelength = 75&lt;br/&gt;/ numlines = 2&lt;br/&gt;/ charlimit = 10&lt;br/&gt;/ buttonlabel = "Submit"&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ branch = [if (contains(openended.characterresponse.response, "L") == true) block.pretest; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial == 0) trial.videoerror1; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial != 0) trial.videoerror2]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror1&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1=VidACerror1; 2= MCCinstructions; ]&lt;br/&gt;/ ontrialend = [openended.characterresponse]&lt;br/&gt;/ ontrialbegin = [values.incorrectresponsetrial = 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror2&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1= ACerrormessage]&lt;br/&gt;/ ontrialend = [values.incorrectresponsetrial = 2]&lt;br/&gt;/ quit = [ values.incorrectresponsetrial == 2] &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt Pretest&amp;gt;&lt;br/&gt;/ blocks = [1= consentform; 2=MCCvid; 3= VideoQ;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values incorrectresponsetrial&amp;gt;&lt;br/&gt;/ incorrectresponsetrial = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;We are also confused about what we should put in our experiment. Currently, we have these three blocks, however, even if the person types the correct answer in VideoQ it is not branching to our Pretest block like we want. When we added  4=pretest; 5=demographics; to our experiment, regardless if they answer the question in VideoQ incorrectly, they moved on to our Pretest block.&lt;br/&gt;&lt;br/&gt;Please help, we have tried different ways of writing the branching and putting it in different elements and nothing is working. Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="30367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;openended characterresponse&amp;gt;&lt;br/&gt;/ stimulusframes = [1=VidACinstruct]&amp;nbsp; &lt;br/&gt;/ position = (50, 45)&lt;br/&gt;/ linelength = 75&lt;br/&gt;/ numlines = 2&lt;br/&gt;/ charlimit = 10&lt;br/&gt;/ buttonlabel = "Submit"&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;&lt;strong&gt;/ branch = [if (contains(openended.characterresponse.response, "L") == true) block.pretest;&lt;/strong&gt;&lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial == 0) trial.videoerror1;&lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial != 0) trial.videoerror2]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;An &amp;lt;openended&amp;gt; element is a &amp;lt;trial&amp;gt;. A trial cannot branch to a block. It can only branch to a trial. Only a block can branch to a different block.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30368"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;so should i put this intire branch within the block that this trial is in</description><pubDate>Mon, 07 Dec 2020 17:18:39 GMT</pubDate><dc:creator>xizhouxie</dc:creator></item><item><title>RE: branching a block</title><link>https://forums.millisecond.com/Topic30368.aspx</link><description>&lt;blockquote data-id="30367" class="if-quote-wrapper" unselectable="on" data-guid="1607360802359" id="if_insertedNode_1607360801525" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30367" 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="30367" 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="30367" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;xizhouxie - 12/7/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30367"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;We are working on a task where participants watch a video and answer a question about the video by typing in their response. If they type in the wrong response (anything but the letter L), we want them to be told of their mistake and then go back and watch the video again, and then take the little quiz where they provide an answer. If they provide the answer incorrectly for the second time, we want them to see a message telling them the program will quit, and then the study ends. If they type the correct answer initially or on their second attempt, we want them to be able to move on to the block called pretest.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;We have found that for whatever reason, our branching does not work. Below is our code where the branching takes place: &lt;br/&gt;&lt;br/&gt;&amp;lt;openended characterresponse&amp;gt;&lt;br/&gt;/ stimulusframes = [1=VidACinstruct]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ position = (50, 45)&lt;br/&gt;/ linelength = 75&lt;br/&gt;/ numlines = 2&lt;br/&gt;/ charlimit = 10&lt;br/&gt;/ buttonlabel = "Submit"&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ branch = [if (contains(openended.characterresponse.response, "L") == true) block.pretest; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial == 0) trial.videoerror1; &lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial != 0) trial.videoerror2]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror1&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1=VidACerror1; 2= MCCinstructions; ]&lt;br/&gt;/ ontrialend = [openended.characterresponse]&lt;br/&gt;/ ontrialbegin = [values.incorrectresponsetrial = 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial videoerror2&amp;gt;&lt;br/&gt;/ validkeys = ("k")&lt;br/&gt;/ stimulusframes = [1= ACerrormessage]&lt;br/&gt;/ ontrialend = [values.incorrectresponsetrial = 2]&lt;br/&gt;/ quit = [ values.incorrectresponsetrial == 2] &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt Pretest&amp;gt;&lt;br/&gt;/ blocks = [1= consentform; 2=MCCvid; 3= VideoQ;]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values incorrectresponsetrial&amp;gt;&lt;br/&gt;/ incorrectresponsetrial = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;We are also confused about what we should put in our experiment. Currently, we have these three blocks, however, even if the person types the correct answer in VideoQ it is not branching to our Pretest block like we want. When we added  4=pretest; 5=demographics; to our experiment, regardless if they answer the question in VideoQ incorrectly, they moved on to our Pretest block.&lt;br/&gt;&lt;br/&gt;Please help, we have tried different ways of writing the branching and putting it in different elements and nothing is working. Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="30367"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;openended characterresponse&amp;gt;&lt;br/&gt;/ stimulusframes = [1=VidACinstruct]&amp;nbsp; &lt;br/&gt;/ position = (50, 45)&lt;br/&gt;/ linelength = 75&lt;br/&gt;/ numlines = 2&lt;br/&gt;/ charlimit = 10&lt;br/&gt;/ buttonlabel = "Submit"&lt;br/&gt;/ correctresponse = ("L")&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;&lt;strong&gt;/ branch = [if (contains(openended.characterresponse.response, "L") == true) block.pretest;&lt;/strong&gt;&lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial == 0) trial.videoerror1;&lt;br/&gt;if (contains(openended.characterresponse.response, "L") == false &amp;amp;&amp;amp; values.incorrectresponsetrial != 0) trial.videoerror2]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;An &amp;lt;openended&amp;gt; element is a &amp;lt;trial&amp;gt;. A trial cannot branch to a block. It can only branch to a trial. Only a block can branch to a different block.&lt;br/&gt;</description><pubDate>Mon, 07 Dec 2020 17:09:42 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>