﻿<?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  » What am I missing?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 22 May 2026 22:21:13 GMT</lastBuildDate><ttl>20</ttl><item><title>What am I missing?</title><link>https://forums.millisecond.com/Topic19316.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I am trying to link correct responses to text items but I must have missed something as the program register every answer as an error. Could you please check my script?&lt;br/&gt;&lt;br/&gt;&amp;lt;trial opposite0click&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = yes, no, instructionframe, stimuli1, opposite1; 2 = stimuli2, opposite2; 3 = question0click, questionopposite0click, Is, ?]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (yes, no)&lt;br/&gt;/ iscorrectresponse = [trial.opposite0click.correct == list.answers1.nextvalue]&lt;br/&gt;/ errormessage = true(error, 500)&lt;br/&gt;/ correctmessage = true (correctmessage, 500)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list answers1&amp;gt;&lt;br/&gt;/ items = ("no", "yes")&lt;br/&gt;/ selectionmode = text.questionopposite.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;text questionopposite&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ items = questionopposite&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ fontstyle = ("Arial", 15pt, true)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ txcolor = (255, 0, 0)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ position = (50, 30)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ select = list.answers1.nextvalue&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;/text&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item no&amp;gt;&lt;br/&gt;/1 = "NO"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item yes&amp;gt;&lt;br/&gt;/1 = "YES"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text no&amp;gt;&lt;br/&gt; /items = no&lt;br/&gt; /select = replace&lt;br/&gt; /vposition = 90%&lt;br/&gt;/ hposition = list.hpos.nextvalue&lt;br/&gt; /txcolor = (255, 0, 0)&lt;br/&gt;/ fontstyle = ("Arial", 30pt, true)&lt;br/&gt; &amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text yes&amp;gt;&lt;br/&gt; /items = yes&lt;br/&gt; /select = replace&lt;br/&gt; /vposition = 90%&lt;br/&gt;/ hposition = list.hpos.nextvalue&lt;br/&gt; /txcolor = (255, 0, 0)&lt;br/&gt;/ fontstyle = ("Arial", 30pt, true)&lt;br/&gt; &amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text error&amp;gt;&lt;br/&gt;/ items= ("ERROR")&lt;br/&gt;/ fontstyle = ("Arial", 50pt, true)&lt;br/&gt;/ txcolor = (255, 0, 0)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text correctmessage&amp;gt;&lt;br/&gt;/ items= ("You won")&lt;br/&gt;/ fontstyle = ("Arial", 50pt, true)&lt;br/&gt;/ txcolor = (255, 0, 0)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text questionopposite&amp;gt;&lt;br/&gt;/ items = questionopposite&lt;br/&gt;/ fontstyle = ("Arial", 15pt, true)&lt;br/&gt;/ txcolor = (255, 0, 0)&lt;br/&gt;/ position = (50, 30)&lt;br/&gt;/ select = list.answers1.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks for your help!&lt;br/&gt;&lt;br/&gt;Lucie</description><pubDate>Sun, 26 Jun 2016 15:26:10 GMT</pubDate><dc:creator>Lucie1043</dc:creator></item><item><title>RE: What am I missing?</title><link>https://forums.millisecond.com/Topic19317.aspx</link><description>&amp;lt;list answers1&amp;gt;&lt;br/&gt;/ items = ("no", "yes")&lt;br/&gt;&lt;strong&gt;/ selectionmode = text.questionopposite.currentindex&lt;/strong&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;text questionopposite&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ items = questionopposite&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ fontstyle = ("Arial", 15pt, true)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ txcolor = (255, 0, 0)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ position = (50, 30)&lt;/span&gt;&lt;br/&gt;&lt;strong&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ select = list.answers1.nextvalue&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;This does not make sense: You instruct the &amp;lt;list&amp;gt; to select the item number corresponding to the item selected by &amp;lt;text questionopposite&amp;gt;, but you also instruct &amp;lt;text questionopposite&amp;gt; to select *its* item according to the &amp;lt;list&amp;gt; (and wrongly so; "yes" or "no", which is what list.answers1.nextvalue returns, is not an item number). In other words: The entire definition is circular (in addition to using improper syntax).&lt;br/&gt;&lt;br/&gt;The proper way to do this is:&lt;br/&gt;&lt;br/&gt;&amp;lt;block questionblock&amp;gt;&lt;br/&gt;/ trials = [1-4 = questiontrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial questiontrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=question, yes, no]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (yes, no)&lt;br/&gt;/ iscorrectresponse = [trial.questiontrial.response == list.correctanswers.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = questionitems&lt;br/&gt;/ select = noreplace&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item questionitems&amp;gt;&lt;br/&gt;/ 1 = "Question A -- Correct answer is yes."&lt;br/&gt;/ 1 = "Question B -- Correct answer is yes."&lt;br/&gt;/ 1 = "Question C -- Correct answer is no."&lt;br/&gt;/ 1 = "Question D -- Correct answer is no."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list correctanswers&amp;gt;&lt;br/&gt;/ items = ("yes", "yes", "no", "no")&lt;br/&gt;&lt;strong&gt;/ selectionmode = text.question.currentindex&lt;/strong&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text yes&amp;gt;&lt;br/&gt;/ items = ("YES.")&lt;br/&gt;/ position = (40%, 60%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text no&amp;gt;&lt;br/&gt;/ items = ("NO.")&lt;br/&gt;/ position = (60%, 60%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Sun, 26 Jun 2016 15:26:10 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>