﻿<?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 6  » branching doesn't work for 'too slow' and 'wrong' feedback</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 30 May 2026 16:01:05 GMT</lastBuildDate><ttl>20</ttl><item><title>branching doesn't work for 'too slow' and 'wrong' feedback</title><link>https://forums.millisecond.com/Topic35667.aspx</link><description>Hi all, &lt;br/&gt;I'm back with another question :)&lt;br/&gt;I tried the /branch attribute to implement 'wrong' feedback and 'too slow' feedback (for trials with a sound after 1800 ms and for others after 800 ms),&lt;br/&gt;but my code doesn't seem to work. &lt;br/&gt;Anyone who sees what's going wrong? Thanks again so much! &lt;br/&gt;&lt;br/&gt;Best, Amelie&lt;br/&gt;&lt;br/&gt;*************************************************&lt;br/&gt;TRIALS&lt;br/&gt;&amp;lt;trial irrelevants&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp; trial.irrelevants.resetstimulusframes();&lt;br/&gt;&amp;nbsp; trial.irrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (startswith(list.irrelevants.currentvalue, "sound.")) {&lt;br/&gt;&amp;nbsp; trial.irrelevants.insertstimulustime(picture.soundicon, 200)};]&lt;br/&gt;/branch= [if(trial.irrelevants.response == "s")trial.wrong]&lt;br/&gt;/branch = [if(startswith(list.irrelevants.currentvalue, "sound."))trial.irrelevants.insertstimulustime(text.tooslow, 1800)]&lt;br/&gt;/branch = [if(startswith(list.irrelevants.currentvalue, "picture."))trial.irrelevants.insertstimulustime(text.tooslow, 800)]&lt;br/&gt;/branch = [if(startswith(list.irrelevants.currentvalue, "text."))trial.irrelevants.insertstimulustime(text.tooslow, 800)]&lt;br/&gt;/stimulustimes = [0 = yes, no]&lt;br/&gt;/validresponse = ("s","l")&lt;br/&gt;/correctresponse = ("l") // no = l-key&lt;br/&gt;/timeout = 2000&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 02 Oct 2023 13:29:51 GMT</pubDate><dc:creator>Amelinq</dc:creator></item><item><title>RE: branching doesn't work for 'too slow' and 'wrong' feedback</title><link>https://forums.millisecond.com/Topic35668.aspx</link><description>&lt;blockquote data-id="35667" class="if-quote-wrapper" unselectable="on" data-guid="1696253200623" contenteditable="false" id="if_insertedNode_1696253198877"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35667" 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="35667" 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="35667" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Amelinq - 10/2/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35667"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all, &lt;br/&gt;I'm back with another question :)&lt;br/&gt;I tried the /branch attribute to implement 'wrong' feedback and 'too slow' feedback (for trials with a sound after 1800 ms and for others after 800 ms),&lt;br/&gt;but my code doesn't seem to work. &lt;br/&gt;Anyone who sees what's going wrong? Thanks again so much! &lt;br/&gt;&lt;br/&gt;Best, Amelie&lt;br/&gt;&lt;br/&gt;*************************************************&lt;br/&gt;TRIALS&lt;br/&gt;&amp;lt;trial irrelevants&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp; trial.irrelevants.resetstimulusframes();&lt;br/&gt;&amp;nbsp; trial.irrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (startswith(list.irrelevants.currentvalue, "sound.")) {&lt;br/&gt;&amp;nbsp; trial.irrelevants.insertstimulustime(picture.soundicon, 200)};]&lt;br/&gt;/branch= [if(trial.irrelevants.response == "s")trial.wrong]&lt;br/&gt;/branch = [if(startswith(list.irrelevants.currentvalue, "sound."))trial.irrelevants.insertstimulustime(text.tooslow, 1800)]&lt;br/&gt;/branch = [if(startswith(list.irrelevants.currentvalue, "picture."))trial.irrelevants.insertstimulustime(text.tooslow, 800)]&lt;br/&gt;/branch = [if(startswith(list.irrelevants.currentvalue, "text."))trial.irrelevants.insertstimulustime(text.tooslow, 800)]&lt;br/&gt;/stimulustimes = [0 = yes, no]&lt;br/&gt;/validresponse = ("s","l")&lt;br/&gt;/correctresponse = ("l") // no = l-key&lt;br/&gt;/timeout = 2000&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35667"&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;The way you try to use /branch makes no sense. /branch is for conditionally invoking another trial (here: one that would display appropriate feedback stimuli), it is not for inserting some stimulus into the current trial.&lt;br/&gt;&lt;br/&gt;Also, the response property returns the scancode of the keyboard key that was pressed, not the character. If you want to work with the character, you ought to use the responsetext property.</description><pubDate>Mon, 02 Oct 2023 13:29:51 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>