﻿<?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  » list selection</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:46:22 GMT</lastBuildDate><ttl>20</ttl><item><title>list selection</title><link>https://forums.millisecond.com/Topic25517.aspx</link><description>Hello David,&lt;br/&gt;&lt;br/&gt;I would need to select a sequence of picture a list if a condition is verified, otherwise another list.&lt;br/&gt;&lt;br/&gt;I have tried this&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Visual_Cue&amp;gt;&lt;br/&gt;/ items = Visual_Cue&lt;br/&gt;/ size = (25%, 25%)&lt;br/&gt;/ hposition = values.x&lt;br/&gt;/ vposition = values.y&lt;br/&gt;/ dropsource = true&lt;br/&gt;/ select = [if (dropdown.CueOrder.response == "random") list.Cue_random.nextvalue;&lt;br/&gt;else if (dropdown.CueOrder.response == "predetermined") list.Cue_sequence.nextvalue]&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;but it does not work ... this was my interpretation of dependency that I could not find anywhere...&lt;br/&gt;&lt;em style="font-weight: bold; font-style: normal; color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;"&gt;/ select = dependency(listname&lt;/em&gt;&lt;span style="color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;)&lt;span&gt;&amp;nbsp;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;Shall I do a list of a list?</description><pubDate>Fri, 14 Sep 2018 08:13:15 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: list selection</title><link>https://forums.millisecond.com/Topic25521.aspx</link><description>&lt;div data-id="25517" class="if-quote-wrapper" unselectable="on" data-guid="1536937556057"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25517" 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="25517" 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="25517" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;tecnika - Friday, September 14, 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-25517"&gt;&lt;div class="if-quote-message-margin"&gt;Hello David,&lt;br/&gt;&lt;br/&gt;I would need to select a sequence of picture a list if a condition is verified, otherwise another list.&lt;br/&gt;&lt;br/&gt;I have tried this&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Visual_Cue&amp;gt;&lt;br/&gt;/ items = Visual_Cue&lt;br/&gt;/ size = (25%, 25%)&lt;br/&gt;/ hposition = values.x&lt;br/&gt;/ vposition = values.y&lt;br/&gt;/ dropsource = true&lt;br/&gt;/ select = [if (dropdown.CueOrder.response == "random") list.Cue_random.nextvalue;&lt;br/&gt;else if (dropdown.CueOrder.response == "predetermined") list.Cue_sequence.nextvalue]&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;but it does not work ... this was my interpretation of dependency that I could not find anywhere...&lt;br/&gt;&lt;em style="font-weight: bold; font-style: normal; color: rgb(106, 106, 106); font-family: arial, sans-serif; font-size: small; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;"&gt;/ select = dependency(listname&lt;/em&gt;&lt;span style="color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;)&lt;span&gt;&amp;nbsp;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;Shall I do a list of a list?&lt;a class="if-quote-goto quote-link" href="#" data-id="25517"&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;Yes, using a "list of lists" is the right approach, i.e. do something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ listnumber = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list mainlist&amp;gt;&lt;br/&gt;/ items = (list.randomorder.nextvalue, list.fixedorder.nextvalue)&lt;br/&gt;/ selectionmode = values.listnumber&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list randomorder&amp;gt;&lt;br/&gt;/ items = (1,2,3,4)&lt;br/&gt;/ selectionmode = random&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list fixedorder&amp;gt;&lt;br/&gt;/ items = (1,2,3,4)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage selectorder&amp;gt;&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.listnumber = dropdown.order.response;&lt;br/&gt;]&lt;br/&gt;/ questions = [1=order]&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;dropdown order&amp;gt;&lt;br/&gt;/ caption = "Select the order:"&lt;br/&gt;/ options = ("random", "fixed")&lt;br/&gt;/ optionvalues = ("1", "2")&lt;br/&gt;&amp;lt;/dropdown&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("A", "B", "C", "D")&lt;br/&gt;/ select = list.mainlist.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1=selectorder; 2-5 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 14 Sep 2018 08:13:15 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>