﻿<?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  » Go no go paradigm - iscorrectresponse</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 04 Jul 2026 11:45:30 GMT</lastBuildDate><ttl>20</ttl><item><title>Go no go paradigm - iscorrectresponse</title><link>https://forums.millisecond.com/Topic25546.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;In a go no-go paradigm, I am having difficulties in coding correct responses with iscorrectresponse. When cue (that change every trials) and response selection (that stays on the screen for the whole duration of the experiment) are different the participant should click on the "Go_noGo" image, but in the datafile it shows as 0 on the "correct" columns. If they are equals, instead, if the participant does not respond or skip the trial the response is correct (and it's shown as "1" in the correct column indeed). Any clue on what I may have done wrong? Thank you,&lt;br/&gt;&lt;br/&gt;Elena&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1_tap_V_Cue_Test&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.resp = 0;]&lt;br/&gt;/ ontrialend = [if (trial.1_tap_V_Cue_Test.response == "Go_noGo") values.resp = radiobuttons.ResponseStimulusGnG.response]&lt;br/&gt;/ ontrialend = [if (trial.1_tap_V_Cue_Test.response == "skip") values.resp = "skip"]&lt;br/&gt;&lt;br/&gt;/ iscorrectresponse = &lt;br/&gt;[if (values.currentCue != values.response_selection) {Go_noGo};&lt;br/&gt; if (values.currentCue == values.response_selection) {skip || 0};]&lt;br/&gt; &lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {values.currentCue=list.Cue_random.nextvalue; }]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "predetermined") {values.currentCue=list.Cue_sequence.nextvalue; }]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {list.Cue_random.poolsize = textbox.nrTrialsTest.response;}]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {list.Cue_random.itemprobabilities.1 = values.probabilityCue1;}]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {list.Cue_random.itemprobabilities.2 = values.probabilityCue2;}]&lt;br/&gt;/ ontrialbegin = [values.timeoutGnG = textbox.timeoutGnG.response]&lt;br/&gt;/ ontrialbegin = [values.nr_experimental_trials += 1]&lt;br/&gt;/ ontrialbegin = [values.nr_practice_trials = 0]&lt;br/&gt;/ ontrialbegin = [picture.Visual_Cue.hposition = 50%; picture.Visual_Cue.vposition = 20%;]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ stimulustimes = [1 = Go_noGo; 200 = Visual_Cue, Go_noGo, skip]&lt;br/&gt;/ timeout = values.timeoutGnG*1000 + 200&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ validresponse = (Go_noGo, skip)&lt;br/&gt;/ branch = [if (values.nr_experimental_trials &amp;lt; textbox.nrTrialsTest.response) trial.1_tap_V_Cue_test else trial.End] &lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Tue, 18 Sep 2018 08:52:32 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: Go no go paradigm - iscorrectresponse</title><link>https://forums.millisecond.com/Topic25555.aspx</link><description>&lt;div class="if-quote-wrapper" unselectable="on" data-id="25551" data-guid="1537285944268"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" contenteditable="false" href="#" unselectable="on" data-id="25551"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" contenteditable="false" href="#" unselectable="on" data-id="25551"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" contenteditable="false" unselectable="on"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="25551"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;Dave - Tuesday, September 18, 2018&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25551"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" unselectable="on" data-id="25546" data-guid="1537285944268"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" contenteditable="false" href="#" unselectable="on" data-id="25546"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" contenteditable="false" href="#" unselectable="on" data-id="25546"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" contenteditable="false" unselectable="on"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="25546"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;tecnika - Tuesday, September 18, 2018&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25546"&gt;&lt;div class="if-quote-message-margin"&gt;Hello,&lt;br/&gt;&lt;br/&gt;In a go no-go paradigm, I am having difficulties in coding correct responses with iscorrectresponse. When cue (that change every trials) and response selection (that stays on the screen for the whole duration of the experiment) are different the participant should click on the "Go_noGo" image, but in the datafile it shows as 0 on the "correct" columns. If they are equals, instead, if the participant does not respond or skip the trial the response is correct (and it's shown as "1" in the correct column indeed). Any clue on what I may have done wrong? Thank you,&lt;br/&gt;&lt;br/&gt;Elena&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1_tap_V_Cue_Test&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.resp = 0;]&lt;br/&gt;/ ontrialend = [if (trial.1_tap_V_Cue_Test.response == "Go_noGo") values.resp = radiobuttons.ResponseStimulusGnG.response]&lt;br/&gt;/ ontrialend = [if (trial.1_tap_V_Cue_Test.response == "skip") values.resp = "skip"]&lt;br/&gt;&lt;br/&gt;/ iscorrectresponse = &lt;br/&gt;[if (values.currentCue != values.response_selection) {Go_noGo};&lt;br/&gt; if (values.currentCue == values.response_selection) {skip || 0};]&lt;br/&gt; &lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {values.currentCue=list.Cue_random.nextvalue; }]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "predetermined") {values.currentCue=list.Cue_sequence.nextvalue; }]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {list.Cue_random.poolsize = textbox.nrTrialsTest.response;}]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {list.Cue_random.itemprobabilities.1 = values.probabilityCue1;}]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {list.Cue_random.itemprobabilities.2 = values.probabilityCue2;}]&lt;br/&gt;/ ontrialbegin = [values.timeoutGnG = textbox.timeoutGnG.response]&lt;br/&gt;/ ontrialbegin = [values.nr_experimental_trials += 1]&lt;br/&gt;/ ontrialbegin = [values.nr_practice_trials = 0]&lt;br/&gt;/ ontrialbegin = [picture.Visual_Cue.hposition = 50%; picture.Visual_Cue.vposition = 20%;]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ stimulustimes = [1 = Go_noGo; 200 = Visual_Cue, Go_noGo, skip]&lt;br/&gt;/ timeout = values.timeoutGnG*1000 + 200&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ validresponse = (Go_noGo, skip)&lt;br/&gt;/ branch = [if (values.nr_experimental_trials &amp;lt; textbox.nrTrialsTest.response) trial.1_tap_V_Cue_test else trial.End] &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25546"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;/ iscorrectresponse = &lt;br/&gt;[if (values.currentCue != values.response_selection) {Go_noGo};&lt;br/&gt; if (values.currentCue == values.response_selection) {skip || 0};]&lt;br/&gt;&lt;br/&gt;is not valid syntax. It needs to read&lt;br/&gt;&lt;br/&gt;/ iscorrectresponse = [(values.currentcue != values.response_selection &amp;amp;&amp;amp; trial.1_tap_V_Cue_Test.response == "Go_noGo") &lt;br/&gt;|| (values.currentcue == values.response_selection &amp;amp;&amp;amp; trial.1_tap_V_Cue_Test.response == "skip") &lt;br/&gt;|| (values.currentcue == values.response_selection &amp;amp;&amp;amp; trial.1_tap_V_Cue_Test.response == 0)]&lt;br/&gt;&lt;br/&gt;if I understand your setup correctly.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25551"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;it works! thank you Dave&lt;br/&gt;</description><pubDate>Tue, 18 Sep 2018 08:52:32 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: Go no go paradigm - iscorrectresponse</title><link>https://forums.millisecond.com/Topic25551.aspx</link><description>&lt;div data-id="25546" class="if-quote-wrapper" unselectable="on" data-guid="1537276609205"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25546" 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="25546" 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="25546" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;tecnika - Tuesday, September 18, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25546"&gt;&lt;div class="if-quote-message-margin"&gt;Hello,&lt;br/&gt;&lt;br/&gt;In a go no-go paradigm, I am having difficulties in coding correct responses with iscorrectresponse. When cue (that change every trials) and response selection (that stays on the screen for the whole duration of the experiment) are different the participant should click on the "Go_noGo" image, but in the datafile it shows as 0 on the "correct" columns. If they are equals, instead, if the participant does not respond or skip the trial the response is correct (and it's shown as "1" in the correct column indeed). Any clue on what I may have done wrong? Thank you,&lt;br/&gt;&lt;br/&gt;Elena&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1_tap_V_Cue_Test&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.resp = 0;]&lt;br/&gt;/ ontrialend = [if (trial.1_tap_V_Cue_Test.response == "Go_noGo") values.resp = radiobuttons.ResponseStimulusGnG.response]&lt;br/&gt;/ ontrialend = [if (trial.1_tap_V_Cue_Test.response == "skip") values.resp = "skip"]&lt;br/&gt;&lt;br/&gt;/ iscorrectresponse = &lt;br/&gt;[if (values.currentCue != values.response_selection) {Go_noGo};&lt;br/&gt; if (values.currentCue == values.response_selection) {skip || 0};]&lt;br/&gt; &lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {values.currentCue=list.Cue_random.nextvalue; }]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "predetermined") {values.currentCue=list.Cue_sequence.nextvalue; }]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {list.Cue_random.poolsize = textbox.nrTrialsTest.response;}]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {list.Cue_random.itemprobabilities.1 = values.probabilityCue1;}]&lt;br/&gt;/ ontrialbegin = [if (dropdown.CueOrder.response == "random") {list.Cue_random.itemprobabilities.2 = values.probabilityCue2;}]&lt;br/&gt;/ ontrialbegin = [values.timeoutGnG = textbox.timeoutGnG.response]&lt;br/&gt;/ ontrialbegin = [values.nr_experimental_trials += 1]&lt;br/&gt;/ ontrialbegin = [values.nr_practice_trials = 0]&lt;br/&gt;/ ontrialbegin = [picture.Visual_Cue.hposition = 50%; picture.Visual_Cue.vposition = 20%;]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ stimulustimes = [1 = Go_noGo; 200 = Visual_Cue, Go_noGo, skip]&lt;br/&gt;/ timeout = values.timeoutGnG*1000 + 200&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ validresponse = (Go_noGo, skip)&lt;br/&gt;/ branch = [if (values.nr_experimental_trials &amp;lt; textbox.nrTrialsTest.response) trial.1_tap_V_Cue_test else trial.End] &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25546"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;/ iscorrectresponse = &lt;br/&gt;[if (values.currentCue != values.response_selection) {Go_noGo};&lt;br/&gt; if (values.currentCue == values.response_selection) {skip || 0};]&lt;br/&gt;&lt;br/&gt;is not valid syntax. It needs to read&lt;br/&gt;&lt;br/&gt;/ iscorrectresponse = [(values.currentcue != values.response_selection &amp;amp;&amp;amp; trial.1_tap_V_Cue_Test.response == "Go_noGo") &lt;br/&gt;|| (values.currentcue == values.response_selection &amp;amp;&amp;amp; trial.1_tap_V_Cue_Test.response == "skip") &lt;br/&gt;|| (values.currentcue == values.response_selection &amp;amp;&amp;amp; trial.1_tap_V_Cue_Test.response == 0)]&lt;br/&gt;&lt;br/&gt;if I understand your setup correctly.&lt;br/&gt;</description><pubDate>Tue, 18 Sep 2018 06:20:25 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>