﻿<?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 5  » Method to override / negate a trial response when a trialduration is set</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 02 May 2026 19:38:01 GMT</lastBuildDate><ttl>20</ttl><item><title>Method to override / negate a trial response when a trialduration is set</title><link>https://forums.millisecond.com/Topic35801.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I'm looking for options that will effectively negate a valid response given a second valid response for a given trial.&lt;br/&gt;&lt;br/&gt;Thanks</description><pubDate>Wed, 29 Nov 2023 12:32:05 GMT</pubDate><dc:creator>mdev762</dc:creator></item><item><title>RE: Method to override / negate a trial response when a trialduration is set</title><link>https://forums.millisecond.com/Topic35804.aspx</link><description>&lt;blockquote data-id="35803" class="if-quote-wrapper" unselectable="on" data-guid="1701260925984" contenteditable="false" id="if_insertedNode_1701260925534"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35803" 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="35803" 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="35803" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mdev762 - 11/29/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-35803"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;br/&gt;&amp;lt;trial t&amp;gt;&lt;br/&gt;/ validresponse = (50,57)&lt;br/&gt;/ trialduration = 2500&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(trial.t.response == 50) trial.b&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Say the spacebar (57) is pressed at 500ms. I'm looking for a way that the branch logic could be executed if the "M" (50) key is pressed.&lt;br/&gt;&lt;br/&gt;What I'm ultimately trying to achieve is that at any time during the experiment if the "M" key is pressed something should happen but generally want to maintain a trial duration of 2500ms.&lt;br/&gt;&lt;br/&gt;I'll probably change the trialduration to a timeout and branch to another trial for&amp;nbsp; 2000ms but just wondering if there is a simpler way as looking to reduce the complexity of the script.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35803"&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;Still not clear enough. What do you want to happen, for example, if the M key is pressed first? Is it then supposed to be possible to override that, too, i.e. press the spacebar after, and thereby not execute the branch? Is the whole thing supposed to be restricted to two responses max or indefinitely many, until the end of the trial duration? Please spell out in detail how you want the trial to behave in every conceivable situation. Then I can give you an answer.&lt;br/&gt;</description><pubDate>Wed, 29 Nov 2023 12:32:05 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Method to override / negate a trial response when a trialduration is set</title><link>https://forums.millisecond.com/Topic35803.aspx</link><description>&lt;br/&gt;&amp;lt;trial t&amp;gt;&lt;br/&gt;/ validresponse = (50,57)&lt;br/&gt;/ trialduration = 2500&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(trial.t.response == 50) trial.b&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Say the spacebar (57) is pressed at 500ms. I'm looking for a way that the branch logic could be executed if the "M" (50) key is pressed.&lt;br/&gt;&lt;br/&gt;What I'm ultimately trying to achieve is that at any time during the experiment if the "M" key is pressed something should happen but generally want to maintain a trial duration of 2500ms.&lt;br/&gt;&lt;br/&gt;I'll probably change the trialduration to a timeout and branch to another trial for&amp;nbsp; 2000ms but just wondering if there is a simpler way as looking to reduce the complexity of the script.&lt;br/&gt;</description><pubDate>Wed, 29 Nov 2023 06:46:57 GMT</pubDate><dc:creator>mdev762</dc:creator></item><item><title>RE: Method to override / negate a trial response when a trialduration is set</title><link>https://forums.millisecond.com/Topic35802.aspx</link><description>&lt;blockquote data-id="35801" class="if-quote-wrapper" unselectable="on" data-guid="1701207754774" contenteditable="false" id="if_insertedNode_1701207753798"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35801" 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="35801" 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="35801" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;mdev762 - 11/28/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-35801"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I'm looking for options that will effectively negate a valid response given a second valid response for a given trial.&lt;br/&gt;&lt;br/&gt;Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="35801"&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;Please give a concrete example of what you want to do, your description is unclear and ambiguous.</description><pubDate>Tue, 28 Nov 2023 21:43:04 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>