﻿<?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 4  » Branching to a questionnaire after a certain number of videos played.</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 09 Sep 2026 15:10:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Branching to a questionnaire after a certain number of videos played.</title><link>https://forums.millisecond.com/Topic20457.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;So I have been working on using values, in particular the trial count function, to branch after a certain number of videos played. I have gotten the trial count to properly count the videos, but it still is not branching on the 6th video like I would like it to.&lt;br/&gt;&lt;br/&gt;Here is an example of how I have it counting:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial beta5&amp;gt;&lt;br/&gt;/stimulustimes = [1=beta5_video]&lt;br/&gt;/validresponse = (57)&lt;br/&gt;/branch = [surveypage.B5]&lt;br/&gt;/timeout = 20000&lt;br/&gt;/ ontrialend=[values.trialcount += 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Here is my values function:&amp;nbsp;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/trialcount = 0 &lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;And here is my branch logic:&lt;br/&gt;&amp;lt;block ASIDE&amp;gt;&lt;br/&gt;/trials = [1= list.beta; 2-12=list.alpha_beta]&lt;br/&gt;/branch = [if(values.trialcount == 6) block.MidASIDESUDS]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Not sure what I am fdoing wrong. As I mentioned before The counting works properly it just is not branching at the proper time.&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;jrp &amp;nbsp;&lt;br/&gt;</description><pubDate>Wed, 11 Jan 2017 10:18:16 GMT</pubDate><dc:creator>Jrp</dc:creator></item><item><title>RE: Branching to a questionnaire after a certain number of videos played.</title><link>https://forums.millisecond.com/Topic20469.aspx</link><description>&lt;div data-id="20461" class="if-quote-wrapper" unselectable="on" data-guid="1484156625245"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20461" 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="20461" 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="20461" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20461"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20459" class="if-quote-wrapper" unselectable="on" data-guid="1484156625245"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20459" 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="20459" 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="20459" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Jrp - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20459"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20458" class="if-quote-wrapper" unselectable="on" data-guid="1484156625245"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20458" 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="20458" 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="20458" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20458"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20457" class="if-quote-wrapper" unselectable="on" data-guid="1484156625245"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20457" 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="20457" 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="20457" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Jrp - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20457"&gt;&lt;div class="if-quote-message-margin"&gt;Hello,&lt;br/&gt;&lt;br/&gt;So I have been working on using values, in particular the trial count function, to branch after a certain number of videos played. I have gotten the trial count to properly count the videos, but it still is not branching on the 6th video like I would like it to.&lt;br/&gt;&lt;br/&gt;Here is an example of how I have it counting:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial beta5&amp;gt;&lt;br/&gt;/stimulustimes = [1=beta5_video]&lt;br/&gt;/validresponse = (57)&lt;br/&gt;/branch = [surveypage.B5]&lt;br/&gt;/timeout = 20000&lt;br/&gt;/ ontrialend=[values.trialcount += 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Here is my values function:&amp;nbsp;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/trialcount = 0 &lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;And here is my branch logic:&lt;br/&gt;&amp;lt;block ASIDE&amp;gt;&lt;br/&gt;/trials = [1= list.beta; 2-12=list.alpha_beta]&lt;br/&gt;/branch = [if(values.trialcount == 6) block.MidASIDESUDS]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Not sure what I am fdoing wrong. As I mentioned before The counting works properly it just is not branching at the proper time.&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;jrp &amp;nbsp;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20457"&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;A /branch at the &amp;lt;block&amp;gt;-level will execute when the &amp;lt;block&amp;gt; ends, it will not interrupt the &amp;lt;block&amp;gt; when that block still has trials to run (as it does in your case). It seems to me that your /branch logic should actually reside at the &amp;lt;trial&amp;gt;-level, not the &amp;lt;block&amp;gt;-level. In this regard, please note that branches need to remain at the same level, i.e.&lt;br/&gt;&lt;br/&gt;- A &amp;lt;trial&amp;gt; can /branch to another &amp;lt;trial&amp;gt;. A &amp;lt;trial&amp;gt; cannot /branch to a &amp;lt;block&amp;gt;.&lt;br/&gt;- A &amp;lt;block&amp;gt; can /branch to another &amp;lt;block&amp;gt;. A &amp;lt;block&amp;gt; cannot /branch to a &amp;lt;trial&amp;gt;.&lt;br/&gt;- A /branch is executed at the *end* of the object it resides in. I.e. a &amp;lt;trial&amp;gt;-level /branch is executed at the end of the &amp;lt;trial&amp;gt; it resides in. A &amp;lt;block&amp;gt;-level /branch is executed at the end of the &amp;lt;block&amp;gt; it resides in.&lt;br/&gt;&lt;br/&gt;Hope this clarifies.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20458"&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;Hello Dave,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks for the reply. I knew the block to block bit but I did not know it only went after the trials which presents me with a problem. The survey I have is in block form because it is 7 random trials with their own survey pages. However the videos are needed to be played randomly and not replaced with this one block in the middle. Is there a way to run a block as a trial or in the middle of another block?&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;&lt;br/&gt;jrp&lt;a class="if-quote-goto quote-link" href="#" data-id="20459"&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;I'm actually wondering whether you need any /branch-ing at all. In other words, why don't you do&lt;br/&gt;&lt;br/&gt;&amp;lt;block ASIDE&amp;gt;&lt;br/&gt;/trials = [1= list.beta; &lt;strong&gt;2-6, 14-19=list.alpha_beta; 7-13 = noreplace(...your 7 trials / surveypages from block MidASIDESUDS go here ...)&lt;/strong&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;?&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20461"&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;Hello,&lt;br/&gt;&lt;br/&gt;I did not know why I didnt think of that! Thank you so much it worked perfectly!&lt;br/&gt;&lt;br/&gt;-jrp</description><pubDate>Wed, 11 Jan 2017 10:18:16 GMT</pubDate><dc:creator>Jrp</dc:creator></item><item><title>RE: Branching to a questionnaire after a certain number of videos played.</title><link>https://forums.millisecond.com/Topic20461.aspx</link><description>&lt;div data-id="20459" class="if-quote-wrapper" unselectable="on" data-guid="1484083229558"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20459" 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="20459" 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="20459" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Jrp - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20459"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20458" class="if-quote-wrapper" unselectable="on" data-guid="1484083229558"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20458" 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="20458" 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="20458" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20458"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20457" class="if-quote-wrapper" unselectable="on" data-guid="1484083229558"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20457" 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="20457" 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="20457" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Jrp - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20457"&gt;&lt;div class="if-quote-message-margin"&gt;Hello,&lt;br/&gt;&lt;br/&gt;So I have been working on using values, in particular the trial count function, to branch after a certain number of videos played. I have gotten the trial count to properly count the videos, but it still is not branching on the 6th video like I would like it to.&lt;br/&gt;&lt;br/&gt;Here is an example of how I have it counting:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial beta5&amp;gt;&lt;br/&gt;/stimulustimes = [1=beta5_video]&lt;br/&gt;/validresponse = (57)&lt;br/&gt;/branch = [surveypage.B5]&lt;br/&gt;/timeout = 20000&lt;br/&gt;/ ontrialend=[values.trialcount += 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Here is my values function:&amp;nbsp;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/trialcount = 0 &lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;And here is my branch logic:&lt;br/&gt;&amp;lt;block ASIDE&amp;gt;&lt;br/&gt;/trials = [1= list.beta; 2-12=list.alpha_beta]&lt;br/&gt;/branch = [if(values.trialcount == 6) block.MidASIDESUDS]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Not sure what I am fdoing wrong. As I mentioned before The counting works properly it just is not branching at the proper time.&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;jrp &amp;nbsp;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20457"&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;A /branch at the &amp;lt;block&amp;gt;-level will execute when the &amp;lt;block&amp;gt; ends, it will not interrupt the &amp;lt;block&amp;gt; when that block still has trials to run (as it does in your case). It seems to me that your /branch logic should actually reside at the &amp;lt;trial&amp;gt;-level, not the &amp;lt;block&amp;gt;-level. In this regard, please note that branches need to remain at the same level, i.e.&lt;br/&gt;&lt;br/&gt;- A &amp;lt;trial&amp;gt; can /branch to another &amp;lt;trial&amp;gt;. A &amp;lt;trial&amp;gt; cannot /branch to a &amp;lt;block&amp;gt;.&lt;br/&gt;- A &amp;lt;block&amp;gt; can /branch to another &amp;lt;block&amp;gt;. A &amp;lt;block&amp;gt; cannot /branch to a &amp;lt;trial&amp;gt;.&lt;br/&gt;- A /branch is executed at the *end* of the object it resides in. I.e. a &amp;lt;trial&amp;gt;-level /branch is executed at the end of the &amp;lt;trial&amp;gt; it resides in. A &amp;lt;block&amp;gt;-level /branch is executed at the end of the &amp;lt;block&amp;gt; it resides in.&lt;br/&gt;&lt;br/&gt;Hope this clarifies.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20458"&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;Hello Dave,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks for the reply. I knew the block to block bit but I did not know it only went after the trials which presents me with a problem. The survey I have is in block form because it is 7 random trials with their own survey pages. However the videos are needed to be played randomly and not replaced with this one block in the middle. Is there a way to run a block as a trial or in the middle of another block?&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;&lt;br/&gt;jrp&lt;a class="if-quote-goto quote-link" href="#" data-id="20459"&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;I'm actually wondering whether you need any /branch-ing at all. In other words, why don't you do&lt;br/&gt;&lt;br/&gt;&amp;lt;block ASIDE&amp;gt;&lt;br/&gt;/trials = [1= list.beta; &lt;strong&gt;2-6, 14-19=list.alpha_beta; 7-13 = noreplace(...your 7 trials / surveypages from block MidASIDESUDS go here ...)&lt;/strong&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;?&lt;br/&gt;</description><pubDate>Tue, 10 Jan 2017 13:25:30 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title /><link>https://forums.millisecond.com/Topic20459.aspx</link><description>&lt;div data-id="20458" class="if-quote-wrapper" unselectable="on"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20458" 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="20458" 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="20458" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20458"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20457" class="if-quote-wrapper" unselectable="on" data-guid="1484073750047"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20457" 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="20457" 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="20457" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Jrp - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20457"&gt;&lt;div class="if-quote-message-margin"&gt;Hello,&lt;br/&gt;&lt;br/&gt;So I have been working on using values, in particular the trial count function, to branch after a certain number of videos played. I have gotten the trial count to properly count the videos, but it still is not branching on the 6th video like I would like it to.&lt;br/&gt;&lt;br/&gt;Here is an example of how I have it counting:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial beta5&amp;gt;&lt;br/&gt;/stimulustimes = [1=beta5_video]&lt;br/&gt;/validresponse = (57)&lt;br/&gt;/branch = [surveypage.B5]&lt;br/&gt;/timeout = 20000&lt;br/&gt;/ ontrialend=[values.trialcount += 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Here is my values function:&amp;nbsp;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/trialcount = 0 &lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;And here is my branch logic:&lt;br/&gt;&amp;lt;block ASIDE&amp;gt;&lt;br/&gt;/trials = [1= list.beta; 2-12=list.alpha_beta]&lt;br/&gt;/branch = [if(values.trialcount == 6) block.MidASIDESUDS]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Not sure what I am fdoing wrong. As I mentioned before The counting works properly it just is not branching at the proper time.&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;jrp &amp;nbsp;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20457"&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;A /branch at the &amp;lt;block&amp;gt;-level will execute when the &amp;lt;block&amp;gt; ends, it will not interrupt the &amp;lt;block&amp;gt; when that block still has trials to run (as it does in your case). It seems to me that your /branch logic should actually reside at the &amp;lt;trial&amp;gt;-level, not the &amp;lt;block&amp;gt;-level. In this regard, please note that branches need to remain at the same level, i.e.&lt;br/&gt;&lt;br/&gt;- A &amp;lt;trial&amp;gt; can /branch to another &amp;lt;trial&amp;gt;. A &amp;lt;trial&amp;gt; cannot /branch to a &amp;lt;block&amp;gt;.&lt;br/&gt;- A &amp;lt;block&amp;gt; can /branch to another &amp;lt;block&amp;gt;. A &amp;lt;block&amp;gt; cannot /branch to a &amp;lt;trial&amp;gt;.&lt;br/&gt;- A /branch is executed at the *end* of the object it resides in. I.e. a &amp;lt;trial&amp;gt;-level /branch is executed at the end of the &amp;lt;trial&amp;gt; it resides in. A &amp;lt;block&amp;gt;-level /branch is executed at the end of the &amp;lt;block&amp;gt; it resides in.&lt;br/&gt;&lt;br/&gt;Hope this clarifies.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20458"&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;Hello Dave,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks for the reply. I knew the block to block bit but I did not know it only went after the trials which presents me with a problem. The survey I have is in block form because it is 7 random trials with their own survey pages. However the videos are needed to be played randomly and not replaced with this one block in the middle. Is there a way to run a block as a trial or in the middle of another block?&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;&lt;br/&gt;jrp</description><pubDate>Tue, 10 Jan 2017 13:09:05 GMT</pubDate><dc:creator>Jrp</dc:creator></item><item><title>RE: Branching to a questionnaire after a certain number of videos played.</title><link>https://forums.millisecond.com/Topic20458.aspx</link><description>&lt;div data-id="20457" class="if-quote-wrapper" unselectable="on" data-guid="1484073750047"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20457" 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="20457" 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="20457" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Jrp - Tuesday, January 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20457"&gt;&lt;div class="if-quote-message-margin"&gt;Hello,&lt;br/&gt;&lt;br/&gt;So I have been working on using values, in particular the trial count function, to branch after a certain number of videos played. I have gotten the trial count to properly count the videos, but it still is not branching on the 6th video like I would like it to.&lt;br/&gt;&lt;br/&gt;Here is an example of how I have it counting:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial beta5&amp;gt;&lt;br/&gt;/stimulustimes = [1=beta5_video]&lt;br/&gt;/validresponse = (57)&lt;br/&gt;/branch = [surveypage.B5]&lt;br/&gt;/timeout = 20000&lt;br/&gt;/ ontrialend=[values.trialcount += 1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Here is my values function:&amp;nbsp;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/trialcount = 0 &lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;And here is my branch logic:&lt;br/&gt;&amp;lt;block ASIDE&amp;gt;&lt;br/&gt;/trials = [1= list.beta; 2-12=list.alpha_beta]&lt;br/&gt;/branch = [if(values.trialcount == 6) block.MidASIDESUDS]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Not sure what I am fdoing wrong. As I mentioned before The counting works properly it just is not branching at the proper time.&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;jrp &amp;nbsp;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20457"&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;A /branch at the &amp;lt;block&amp;gt;-level will execute when the &amp;lt;block&amp;gt; ends, it will not interrupt the &amp;lt;block&amp;gt; when that block still has trials to run (as it does in your case). It seems to me that your /branch logic should actually reside at the &amp;lt;trial&amp;gt;-level, not the &amp;lt;block&amp;gt;-level. In this regard, please note that branches need to remain at the same level, i.e.&lt;br/&gt;&lt;br/&gt;- A &amp;lt;trial&amp;gt; can /branch to another &amp;lt;trial&amp;gt;. A &amp;lt;trial&amp;gt; cannot /branch to a &amp;lt;block&amp;gt;.&lt;br/&gt;- A &amp;lt;block&amp;gt; can /branch to another &amp;lt;block&amp;gt;. A &amp;lt;block&amp;gt; cannot /branch to a &amp;lt;trial&amp;gt;.&lt;br/&gt;- A /branch is executed at the *end* of the object it resides in. I.e. a &amp;lt;trial&amp;gt;-level /branch is executed at the end of the &amp;lt;trial&amp;gt; it resides in. A &amp;lt;block&amp;gt;-level /branch is executed at the end of the &amp;lt;block&amp;gt; it resides in.&lt;br/&gt;&lt;br/&gt;Hope this clarifies.&lt;br/&gt;</description><pubDate>Tue, 10 Jan 2017 10:48:00 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>