﻿<?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  » How to do branching at the beginning to run two different experiments?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 25 May 2026 00:04:44 GMT</lastBuildDate><ttl>20</ttl><item><title>How to do branching at the beginning to run two different experiments?</title><link>https://forums.millisecond.com/Topic16773.aspx</link><description>Hello&lt;br/&gt;&lt;br/&gt;Currently I am trying to program an n-back task for a study. We want to test two different age groups and to adjust the difficulty: The older ones should only do the 2-back task and the younger ones only the 3-back task. At the beginning we want to ask the age group (with a checkbox) &amp;nbsp;and depending on their answer they should run a whole different experiment (different instructions, practice blocks &amp;amp; &amp;nbsp;trainingsblocks). I searched on the "Inquisit Help Page but couldn't find any clear instruction to write the syntax.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;By now, i &amp;nbsp;have the checkbox and the survey page: &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;checkboxes agegroup&amp;gt;&lt;br/&gt;/ caption="Bitte waehlen Sie ihre Altersgruppe:"&lt;br/&gt;/fontstyle = ("Arial", 3.05%, true, false, false, false, 5, 0)&lt;br/&gt;/ txcolor = (0, 0, 0)&lt;br/&gt;/ required = true&lt;br/&gt;/ options=("20-35", "60-75")&lt;br/&gt;/ range = (1, 1)&lt;br/&gt;/ position= (30, 50)&lt;br/&gt;/responsefontstyle = ("Arial", 3.05%, true, false, false, false, 5, 0)&lt;br/&gt;/ txcolor = (0, 0, 0)&lt;br/&gt;&amp;lt;/checkboxes&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage Start&amp;gt;&lt;br/&gt;/questions= [1=Agegroup]&lt;br/&gt;/ nextlabel = ("Weiter")&lt;br/&gt;/ navigationbuttonfontstyle = ("Arial", 3.05%, true, false, false, false, 5, 0)&lt;br/&gt;/ navigationbuttonsize = (10%, 2%)&lt;br/&gt;/ nextbuttonposition = (60%, 70%)&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ branch = [if(checkboxes.agegroup.response =="20-35") ???] &lt;br/&gt;/ branch = [if(checkboxes.agegroup.response =="60-75") ???] &lt;br/&gt;&lt;br/&gt;??? ---&amp;gt; this is the part where I am wondering which "trail" I should take. Depending on the age group the participants have to work either one of two groups of blocks in a specific order (InstructionsYoung, PracticeYoung, TrainingYoung /// or: InstructionsOld, PracticeOld, TrainingOld)&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Is it possible to create two different experiments and show the page before and select the experiment type after answering the question or do I have to do the branching in one experiment?&lt;br/&gt;&lt;br/&gt;I hope my descriptions are clear enough and that somebody can help me. Thank you! :)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 23 Jul 2015 11:05:36 GMT</pubDate><dc:creator>MWirth</dc:creator></item><item><title>RE: How to do branching at the beginning to run two different experiments?</title><link>https://forums.millisecond.com/Topic16777.aspx</link><description>Thank you very much for your quick help, now I have an idea how to structure the syntax. I'll try and hopefully I'll make it work :)</description><pubDate>Thu, 23 Jul 2015 11:05:36 GMT</pubDate><dc:creator>MWirth</dc:creator></item><item><title>RE: How to do branching at the beginning to run two different experiments?</title><link>https://forums.millisecond.com/Topic16774.aspx</link><description>The best way to do this is in a single &amp;lt;expt&amp;gt;. Specify *all* the &amp;lt;block&amp;gt;s (for both groups) in its /blocks attribute. The 1st block is where you ask your age question. Then use /skip attributes in the remaining &amp;lt;blocks&amp;gt; to only run those that apply. Simple example:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=groupselection; 2=group1block1; 3=group1block2; 4=group2block1; 5=group2block2; 6=group2block3]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block groupselection&amp;gt;&lt;br/&gt;/ trials = [1=groupquestion]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage groupquestion&amp;gt;&lt;br/&gt;/ questions = [1=group]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons group&amp;gt;&lt;br/&gt;/ options = ("Group 1", "Group 2")&lt;br/&gt;/ optionvalues = ("1", "2")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block group1block1&amp;gt;&lt;br/&gt;/ skip = [radiobuttons.group.response!="1"]&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block group1block2&amp;gt;&lt;br/&gt;/ skip = [radiobuttons.group.response!="1"]&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block group2block1&amp;gt;&lt;br/&gt;/ skip = [radiobuttons.group.response!="2"]&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block group2block2&amp;gt;&lt;br/&gt;/ skip = [radiobuttons.group.response!="2"]&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block group2block3&amp;gt;&lt;br/&gt;/ skip = [radiobuttons.group.response!="2"]&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("This is block &amp;lt;%script.currentblock%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;</description><pubDate>Thu, 23 Jul 2015 09:27:23 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>