﻿<?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  » list syntax</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 27 Sep 2026 19:41:00 GMT</lastBuildDate><ttl>20</ttl><item><title>list syntax</title><link>https://forums.millisecond.com/Topic16627.aspx</link><description>Hi, Mr. Dave.&lt;br/&gt;I am wondering whether inquisit 4 can do this:&lt;br/&gt;On the beginning of the block, list randomly select a number. How can we track down that number? Since at the end of that block, the number will&amp;nbsp;decrease or increase by 1 from the one that was selected.&lt;br/&gt;I use this syntax but doesn't work. Thank you for your concern！&lt;br/&gt;&amp;lt;list selection&amp;gt;&lt;br/&gt;/ selectionmode = random&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/step=10&lt;br/&gt;/count=list.selection&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block 1&amp;gt;&lt;br/&gt;/ onblockbegin = [list.selection]&lt;br/&gt;/ trials = [1= standard;2=target;3=question]&lt;br/&gt;/ onblockend = [if(openended.question.correct)list.selection.currentvalue -=1 else list.selection.currentvalue +=1]&lt;br/&gt;/ branch = [if (list.selection.currentvalue==10 &amp;amp;&amp;amp; openended.question.correct) 0]&lt;br/&gt;/ branch = [if(list.selection.currentvalue&amp;lt;10)block.1]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;nbsp;Best,&lt;br/&gt;nakayama</description><pubDate>Tue, 30 Jun 2015 22:51:11 GMT</pubDate><dc:creator>nakayama</dc:creator></item><item><title>RE: list syntax</title><link>https://forums.millisecond.com/Topic16636.aspx</link><description>Thank you Dave！Very appreciated.&lt;br/&gt;</description><pubDate>Tue, 30 Jun 2015 22:51:11 GMT</pubDate><dc:creator>nakayama</dc:creator></item><item><title>RE: list syntax</title><link>https://forums.millisecond.com/Topic16632.aspx</link><description>Yes, that /stimulustimes setup combined with a 2100 ms /timeout would result in a display duration of approx. 100 ms for the stimulus "target".&lt;br/&gt;</description><pubDate>Tue, 30 Jun 2015 10:36:46 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: list syntax</title><link>https://forums.millisecond.com/Topic16631.aspx</link><description>Thank you Dave! I appreciate it very much!&lt;br/&gt;I read it. As for timing, is it correct to define the duration of stimulus as "100ms" like this?&lt;br/&gt;&amp;lt;trial standard&amp;gt;&lt;br/&gt;/ stimulustimes = [1=fixation;2000=target]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ timeout = 2100&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;nakayama</description><pubDate>Tue, 30 Jun 2015 10:13:49 GMT</pubDate><dc:creator>nakayama</dc:creator></item><item><title>RE: list syntax</title><link>https://forums.millisecond.com/Topic16630.aspx</link><description>Various issues in that script; pay closer attention to any warnings and error messages when you parse and run, then fix them. Main problem was you using /stimulus&lt;strong&gt;frames&lt;/strong&gt;&amp;nbsp; instead of /stimulus&lt;strong&gt;times&lt;/strong&gt; in &amp;lt;trial target&amp;gt;. Compare to the attached.&lt;br/&gt;&lt;br/&gt;You may also want to take a closer look at the "How to Control Trial Duration and Inter-Trial Intervals" topic in the documentation to make sure you understand Inquisit's timing model and the resulting timings are what you intend them to be.&lt;br/&gt;</description><pubDate>Tue, 30 Jun 2015 09:44:40 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: list syntax</title><link>https://forums.millisecond.com/Topic16629.aspx</link><description>Thank you Dave! I modified it.&amp;nbsp;&lt;br/&gt;However, when I ran my script I showed this:&lt;br/&gt;Direct2D Warning: 0x8899000c A presentation error has occurred that may be recoverable. The caller needs to re-create the render target then attempt to render the frame again. Line 779, File win\Direct2DGraphics.cpp&lt;br/&gt;Would you please take a look at my draft? I was trying to start a the target stimulus with the duration randomly from (10,20,30,40,50,60,70,80,90,100)&amp;nbsp;&lt;br/&gt;Thank you for your time!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 30 Jun 2015 08:28:29 GMT</pubDate><dc:creator>nakayama</dc:creator></item><item><title>RE: list syntax</title><link>https://forums.millisecond.com/Topic16628.aspx</link><description>To select a value at random from a &amp;lt;list&amp;gt; and store it, do:&lt;br/&gt;&lt;br/&gt;&amp;lt;list somelist&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ count = 0&lt;br/&gt;...&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onextpbegin = [values.count = list.somelist.nextvalue]&lt;br/&gt;/ blocks = [1=1]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;Then&amp;nbsp; work with / in- or de-crease values.count in your &amp;lt;block&amp;gt; as needed.&lt;br/&gt;</description><pubDate>Tue, 30 Jun 2015 06:35:46 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>