﻿<?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  » Problems with iscorrectresponse</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 26 Aug 2026 12:47:29 GMT</lastBuildDate><ttl>20</ttl><item><title>Problems with iscorrectresponse</title><link>https://forums.millisecond.com/Topic29593.aspx</link><description>Hello all,&lt;br/&gt;&lt;br/&gt;I want to use /iscorrectresponse to counterbalance which key to press on my trials. I have it currently set up as follows:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial practice_left&amp;gt;&lt;br/&gt;/ pretrialpause = 300&lt;br/&gt;/ validresponse = ("Q", "q", "P", "p")&lt;br/&gt;/ iscorrectresponse = [(values.expcondition == 1 &amp;amp;&amp;amp; trial.practice_left.response == "Q" || values.expcondition == 1 &amp;amp;&amp;amp; trial.practice_left.response == "q")|| (values.expcondition == 2 &amp;amp;&amp;amp; trial.practice_left.response == "P" || values.expcondition == 2 &amp;amp;&amp;amp; trial.practice_left.response == "p")]&lt;br/&gt;&lt;br/&gt;/ errormessage = (errormessage, 200)&lt;br/&gt;/ responsemode = timeout (3000)&lt;br/&gt;/ stimulustimes = [0=practicenames; 300 = eraser; 300= category_left]&lt;br/&gt;/ posttrialpause = 300&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;expcondition is defined globally as 0 but redefined onexptbegin as 1 or 2 (depending on the subject number).&lt;br/&gt;The problem I am facing is that no matter what key I press, I always get the errormessage. I am new to Inquisit so I only half know what I am doing. I have tried several things to see where the problem lies (whether it is due to expcondition or whether it is due to using too many expressions), but nothing has worked so far.&lt;br/&gt;&lt;br/&gt;Does anyone know where I am going wrong here?&lt;br/&gt;&lt;br/&gt;Kind regards</description><pubDate>Thu, 20 Aug 2020 11:17:22 GMT</pubDate><dc:creator>nanna137</dc:creator></item><item><title>RE: Problems with iscorrectresponse</title><link>https://forums.millisecond.com/Topic29595.aspx</link><description>&lt;blockquote data-id="29594" class="if-quote-wrapper" unselectable="on" data-guid="1597922141195" contenteditable="false" id="if_insertedNode_1597922139671"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29594" 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="29594" 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="29594" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/20/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29594"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="29593" class="if-quote-wrapper" unselectable="on" data-guid="1597922141195" id="if_insertedNode_1597921399927" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29593" 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="29593" 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="29593" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nanna137 - 8/20/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29593"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello all,&lt;br/&gt;&lt;br/&gt;I want to use /iscorrectresponse to counterbalance which key to press on my trials. I have it currently set up as follows:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial practice_left&amp;gt;&lt;br/&gt;/ pretrialpause = 300&lt;br/&gt;/ validresponse = ("Q", "q", "P", "p")&lt;br/&gt;/ iscorrectresponse = [(values.expcondition == 1 &amp;amp;&amp;amp; trial.practice_left.response == "Q" || values.expcondition == 1 &amp;amp;&amp;amp; trial.practice_left.response == "q")|| (values.expcondition == 2 &amp;amp;&amp;amp; trial.practice_left.response == "P" || values.expcondition == 2 &amp;amp;&amp;amp; trial.practice_left.response == "p")]&lt;br/&gt;&lt;br/&gt;/ errormessage = (errormessage, 200)&lt;br/&gt;/ responsemode = timeout (3000)&lt;br/&gt;/ stimulustimes = [0=practicenames; 300 = eraser; 300= category_left]&lt;br/&gt;/ posttrialpause = 300&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;expcondition is defined globally as 0 but redefined onexptbegin as 1 or 2 (depending on the subject number).&lt;br/&gt;The problem I am facing is that no matter what key I press, I always get the errormessage. I am new to Inquisit so I only half know what I am doing. I have tried several things to see where the problem lies (whether it is due to expcondition or whether it is due to using too many expressions), but nothing has worked so far.&lt;br/&gt;&lt;br/&gt;Does anyone know where I am going wrong here?&lt;br/&gt;&lt;br/&gt;Kind regards&lt;a class="if-quote-goto quote-link" href="#" data-id="29593"&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 response property does not return the character imprinted on the key pressed (e.g. "p"), but the key's numerical keyboard scancode. See Tools -&amp;gt; Keyboard Scancodes in Inquisit Lab and &lt;a href="https://www.millisecond.com/support/docs/v4/html/language/scancodes.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v4/html/language/scancodes.htm"&gt;https://www.millisecond.com/support/docs/v4/html/language/scancodes.htm&lt;/a&gt;&lt;/a&gt; &lt;br/&gt;&lt;br/&gt;trial.practice_left.response == "p"&lt;br/&gt;needs to be&lt;br/&gt;trial.practice_left.response == 25&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29594"&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;Thank you so much! I didn't even know this was a thing since it's not needed for correctresponse.</description><pubDate>Thu, 20 Aug 2020 11:17:22 GMT</pubDate><dc:creator>nanna137</dc:creator></item><item><title>RE: Problems with iscorrectresponse</title><link>https://forums.millisecond.com/Topic29594.aspx</link><description>&lt;blockquote data-id="29593" class="if-quote-wrapper" unselectable="on" data-guid="1597921400860" id="if_insertedNode_1597921399927" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29593" 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="29593" 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="29593" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nanna137 - 8/20/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29593"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello all,&lt;br/&gt;&lt;br/&gt;I want to use /iscorrectresponse to counterbalance which key to press on my trials. I have it currently set up as follows:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial practice_left&amp;gt;&lt;br/&gt;/ pretrialpause = 300&lt;br/&gt;/ validresponse = ("Q", "q", "P", "p")&lt;br/&gt;/ iscorrectresponse = [(values.expcondition == 1 &amp;amp;&amp;amp; trial.practice_left.response == "Q" || values.expcondition == 1 &amp;amp;&amp;amp; trial.practice_left.response == "q")|| (values.expcondition == 2 &amp;amp;&amp;amp; trial.practice_left.response == "P" || values.expcondition == 2 &amp;amp;&amp;amp; trial.practice_left.response == "p")]&lt;br/&gt;&lt;br/&gt;/ errormessage = (errormessage, 200)&lt;br/&gt;/ responsemode = timeout (3000)&lt;br/&gt;/ stimulustimes = [0=practicenames; 300 = eraser; 300= category_left]&lt;br/&gt;/ posttrialpause = 300&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;expcondition is defined globally as 0 but redefined onexptbegin as 1 or 2 (depending on the subject number).&lt;br/&gt;The problem I am facing is that no matter what key I press, I always get the errormessage. I am new to Inquisit so I only half know what I am doing. I have tried several things to see where the problem lies (whether it is due to expcondition or whether it is due to using too many expressions), but nothing has worked so far.&lt;br/&gt;&lt;br/&gt;Does anyone know where I am going wrong here?&lt;br/&gt;&lt;br/&gt;Kind regards&lt;a class="if-quote-goto quote-link" href="#" data-id="29593"&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 response property does not return the character imprinted on the key pressed (e.g. "p"), but the key's numerical keyboard scancode. See Tools -&amp;gt; Keyboard Scancodes in Inquisit Lab and &lt;a href="https://www.millisecond.com/support/docs/v4/html/language/scancodes.htm"&gt;https://www.millisecond.com/support/docs/v4/html/language/scancodes.htm&lt;/a&gt; &lt;br/&gt;&lt;br/&gt;trial.practice_left.response == "p"&lt;br/&gt;needs to be&lt;br/&gt;trial.practice_left.response == 25&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;</description><pubDate>Thu, 20 Aug 2020 11:07:21 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>