﻿<?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 3  » Branch after response</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 15 Apr 2026 18:41:53 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Branch after response</title><link>https://forums.millisecond.com/Topic7589.aspx</link><description>&lt;p&gt;Perfect!&lt;/p&gt;
&lt;p&gt;I didn't even know that block had /stop syntax&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description><pubDate>Thu, 08 Mar 2012 12:46:17 GMT</pubDate><dc:creator>mel51</dc:creator></item><item><title>RE: Branch after response</title><link>https://forums.millisecond.com/Topic7588.aspx</link><description>&lt;p&gt;As far as I can infer from your code snippet, you actually don't want to /branch to trial.stop in &amp;lt;trial moderate&amp;gt;. Instead you want to /stop &amp;lt;block moderate&amp;gt; as soon as "s" is pressed in &amp;lt;trial moderate&amp;gt;. &amp;lt;block stop&amp;gt; is next, which will run &amp;lt;trial stop&amp;gt;, etc. The correct way to do this then is:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;trial moderate&amp;gt;&lt;br /&gt;/ validkeys = ("s", "n")&lt;br /&gt;/ stimulusframes = [1= moderate]&lt;br /&gt;/ branch = [if (trial.moderate.response==49) trial.moderate]&lt;br /&gt;&amp;lt;/trial&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;[...]&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;block moderate&amp;gt;&lt;br /&gt;/ stop = [trial.moderate.response==31]&lt;br /&gt;/ bgstim = (gonext, stop)&lt;br /&gt;/ trials = [1=moderate]&lt;br /&gt;&amp;lt;/block&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Thu, 08 Mar 2012 12:03:23 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>Branch after response</title><link>https://forums.millisecond.com/Topic7587.aspx</link><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I'm making a study where participants see a series of statements about a person's sexist behavior. &amp;nbsp;They either click "n" to continue on to the next statement, or if they think they've seen enough about the person to make a judgment that he's sexist, they click "s".&lt;/p&gt;
&lt;p&gt;I want "s" to cause the statements to stop appearing and show a screen that says something about them indicating that the man is sexist and asks them to press "n" to continue to the next page (which asks them about their demographics)&lt;/p&gt;
&lt;p&gt;However, after struggling with the branch syntax for a while I managed to get it so that after "s" is pressed, the message shows up and the statements stop, but the background stimuli is still there ("press s for stop and n for next") and the "press n to continue" doesn't show up. &amp;nbsp;It's only after they press "n" that the background stimuli disappears and "press n for next" shows up. &amp;nbsp;So they end up seeing the info about them indicating that the man is sexist twice and they don't know how to continue onto the demographics screen if the instructions aren't there.&lt;/p&gt;
&lt;p&gt;Here are the relevant parts of the script:&lt;/p&gt;
&lt;p&gt;*****************BACKGROUND STIMULI****************&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&amp;lt;text gonext&amp;gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;
&lt;p&gt;/ items = ("Next")&lt;/p&gt;
&lt;p&gt;/ fontstyle = ("Arial", 14pt)&lt;/p&gt;
&lt;p&gt;/ position = (90, 10)&lt;/p&gt;
&lt;p&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;text stop&amp;gt;&lt;/p&gt;
&lt;p&gt;/ items = ("Stop")&lt;/p&gt;
&lt;p&gt;/ fontstyle = ("Arial", 14pt)&lt;/p&gt;
&lt;p&gt;/ position = (10, 10)&lt;/p&gt;
&lt;p&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;text pressn&amp;gt;&lt;/p&gt;
&lt;p&gt;/ items = ("Press 'n' to continue")&lt;/p&gt;
&lt;p&gt;/ fontstyle = ("Arial", 14pt)&lt;/p&gt;
&lt;p&gt;/ position = (10, 10)&lt;/p&gt;
&lt;p&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;
&lt;p&gt;****************MESSAGE****************&lt;/p&gt;
&lt;p&gt;

&lt;p&gt;&amp;lt;text stoppage&amp;gt;&lt;/p&gt;

&lt;p&gt;/ fontstyle = ("Arial", 14pt)&lt;/p&gt;
&lt;p&gt;/ position = (50, 50)&lt;/p&gt;
&lt;p&gt;/ items = ("You have indicated that Josh is sexist.")&lt;/p&gt;
&lt;p&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;


&lt;/p&gt;
&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;*****************TRIALS********************&lt;/p&gt;

&lt;p&gt;&amp;lt;trial moderate&amp;gt;&lt;/p&gt;
&lt;p&gt;/ validkeys = ("s", "n")&lt;/p&gt;
&lt;p&gt;/ stimulusframes = [1= moderate]&lt;/p&gt;
&lt;p&gt;/ branch = [if (trial.moderate.response==31) trial.stop]&lt;/p&gt;
&lt;p&gt;/ branch = [if (trial.moderate.response==49) trial.moderate]&lt;/p&gt;
&lt;p&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;trial stop&amp;gt;&lt;/p&gt;
&lt;p&gt;/ stimulusframes = [1=stoppage]&lt;/p&gt;
&lt;p&gt;/ validkeys = ("n")&lt;/p&gt;
&lt;p&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;

&lt;p&gt;**********************BLOCKS**********************&lt;/p&gt;

&lt;p&gt;&amp;lt;block moderate&amp;gt;&lt;/p&gt;
&lt;p&gt;/ bgstim = (gonext, stop)&lt;/p&gt;
&lt;p&gt;/ trials = [1=moderate]&lt;/p&gt;
&lt;p&gt;&amp;lt;/block&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;block stop&amp;gt;&lt;/p&gt;
&lt;p&gt;/ trials = [1=stop]&lt;/p&gt;
&lt;p&gt;/ bgstim = (pressn)&lt;/p&gt;
&lt;p&gt;&amp;lt;/block&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;block demographics&amp;gt;&lt;/p&gt;
&lt;p&gt;/ trials = [1=demographics]&lt;/p&gt;
&lt;p&gt;&amp;lt;/block&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;expt&amp;gt;&lt;/p&gt;
&lt;p&gt;/ preinstructions = (intro1, intro2)&lt;/p&gt;
&lt;p&gt;/ blocks = [1=moderate; 2=stop; 3=demographics]&lt;/p&gt;
&lt;p&gt;&amp;lt;/expt&amp;gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thanks!&lt;/div&gt;
&lt;/p&gt;</description><pubDate>Thu, 08 Mar 2012 11:50:44 GMT</pubDate><dc:creator>mel51</dc:creator></item></channel></rss>