﻿<?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 and Blocks</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 16 Jun 2026 09:13:00 GMT</lastBuildDate><ttl>20</ttl><item><title>Branching and Blocks</title><link>https://forums.millisecond.com/Topic19403.aspx</link><description>Hi all,&lt;br/&gt;&lt;br/&gt;I have two issues with my script that I can not figure out.&lt;br/&gt;&lt;br/&gt;1) I am trying to get one of my survey pages to either: branch to additional questions if the first question was answered correctly, or move on to the next trial if the first question was answered incorrectly.&lt;br/&gt;&lt;br/&gt;First Question:&lt;br/&gt;&amp;lt;surveypage POST_TOM_S&amp;gt;&lt;br/&gt;/ questions = [1=TOM_CAP_S; 2=TOM_Q_S]&lt;br/&gt;/ nextbuttonposition = (37%, 80%)&lt;br/&gt;/ finishlabel = "Click to proceed to the next video."&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ branch = [surveypage.post_tom_qs]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;Follow-up question (if 1st was answered correctly):&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage POST_TOM_QS&amp;gt;&lt;br/&gt;/ questions = [1=TOM_SA; 2=TOM_SB; 3=TOM_SC; 4=TOM_SD]&lt;br/&gt;/ nextbuttonposition = (37%, 80%)&lt;br/&gt;/ finishlabel = "Click to proceed to the next video."&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;My second question is how do I prevent the same video from repeating? I have "noreplace" in the block section and in the item section, however it still sometimes repeats the same video...&lt;br/&gt;&lt;br/&gt;&amp;lt;block STIM_G&amp;gt;&lt;br/&gt;/ trials = [1-6=noreplace(PRE_GD, PRE_TOM_S, PRE_TOM_M, PRE_RD)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;*note: PRE_GD and PRE_RD contain two videos each, and PRE_TOM_S and PRE_TOM_M contain only 1 video each.&lt;br/&gt;&lt;br/&gt;Any help would be greatly appreciated! Thank you!&lt;br/&gt;</description><pubDate>Thu, 14 Jul 2016 15:09:33 GMT</pubDate><dc:creator>Jin</dc:creator></item><item><title>RE: Branching and Blocks</title><link>https://forums.millisecond.com/Topic19405.aspx</link><description>Re. #1: See &lt;a href="https://www.millisecond.com/forums/FindPost5461.aspx"&gt;https://www.millisecond.com/forums/FindPost5461.aspx&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Re. #2: &lt;br/&gt;&lt;br/&gt;&amp;lt;block STIM_G&amp;gt;&lt;br/&gt;/ trials = [1-6=noreplace(PRE_GD, PRE_TOM_S, PRE_TOM_M, PRE_RD)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;means you are taking 6 samples from the four elements PRE_GD, PRE_TOM_S, PRE_TOM_M, and PRE_RD *in equal proportions*. What you actually want, however, is *two* instances of PRE_GD, *two* instances of PRE_RD, and only *one* instance each of PRE_TOM_S and PRE_TOM_M. You simply need to specify exactly that:&lt;br/&gt;&lt;br/&gt;/ trials = [1-6=noreplace(PRE_GD, PRE_GD, PRE_TOM_S, PRE_TOM_M, PRE_RD, PRE_RD)]</description><pubDate>Thu, 14 Jul 2016 15:09:33 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>