﻿<?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  » Random trial selection with branching</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 16 Sep 2026 05:15:42 GMT</lastBuildDate><ttl>20</ttl><item><title>Random trial selection with branching</title><link>https://forums.millisecond.com/Topic26195.aspx</link><description>Dear all,&lt;br/&gt;&lt;br/&gt;I'm struggling to create an experiment in which Inquisit randomly selects one of my three trial types. I've got multiple trials differing in how fast a stimulus will be presented after the mouse click of a participant. I would like to add a condition in which the trials are selected randomly.&lt;br/&gt;&lt;br/&gt;my branching code:&lt;br/&gt;&lt;br/&gt;/ branch = [if (trial.1to4arrow_direct_500.response == "player4label") trial.1to3arrow_direct_500_excluded]&lt;br/&gt;/ branch = [if (trial.1to4arrow_direct_500.response == 0) trial.1to4_direct_500]&lt;br/&gt;&lt;br/&gt;In both the trial.1to3arrow_direct_500_excluded and the trial.1to4_direct_500 the "500" stands for the ms it takes for a stimulus to appear. I created two other conditions in which the ms are 1000 and 1500. I would like to create a condition in which inquisit randomly selects the 500, 1000 or 1500 ms trial. I started making a &amp;lt;list&amp;gt; element with all the trials, however, now I am not sure how to tell inquisit to randomly select a trial from that list (including the if statements for the responses).&lt;br/&gt;&lt;br/&gt;I hope this makes sense, if not, I could try explaining it with my whole code but since it is quite elaborate I hope this is clear enough.&lt;br/&gt;&lt;br/&gt;Thank you in advance for helping!&lt;br/&gt;&lt;br/&gt;Kind regards,&amp;nbsp;&lt;br/&gt;Esther&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 19 Dec 2018 03:29:53 GMT</pubDate><dc:creator>EstherKlinkenberg</dc:creator></item><item><title>RE: Random trial selection with branching</title><link>https://forums.millisecond.com/Topic26211.aspx</link><description>&lt;div data-id="26197" class="if-quote-wrapper" unselectable="on" data-guid="1545218923504"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26197" 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="26197" 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="26197" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, December 17, 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-26197"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26195" class="if-quote-wrapper" unselectable="on" data-guid="1545218923504"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26195" 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="26195" 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="26195" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;EstherKlinkenberg - Monday, December 17, 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-26195"&gt;&lt;div class="if-quote-message-margin"&gt;Dear all,&lt;br/&gt;&lt;br/&gt;I'm struggling to create an experiment in which Inquisit randomly selects one of my three trial types. I've got multiple trials differing in how fast a stimulus will be presented after the mouse click of a participant. I would like to add a condition in which the trials are selected randomly.&lt;br/&gt;&lt;br/&gt;my branching code:&lt;br/&gt;&lt;br/&gt;/ branch = [if (trial.1to4arrow_direct_500.response == "player4label") trial.1to3arrow_direct_500_excluded]&lt;br/&gt;/ branch = [if (trial.1to4arrow_direct_500.response == 0) trial.1to4_direct_500]&lt;br/&gt;&lt;br/&gt;In both the trial.1to3arrow_direct_500_excluded and the trial.1to4_direct_500 the "500" stands for the ms it takes for a stimulus to appear. I created two other conditions in which the ms are 1000 and 1500. I would like to create a condition in which inquisit randomly selects the 500, 1000 or 1500 ms trial. I started making a &amp;lt;list&amp;gt; element with all the trials, however, now I am not sure how to tell inquisit to randomly select a trial from that list (including the if statements for the responses).&lt;br/&gt;&lt;br/&gt;I hope this makes sense, if not, I could try explaining it with my whole code but since it is quite elaborate I hope this is clear enough.&lt;br/&gt;&lt;br/&gt;Thank you in advance for helping!&lt;br/&gt;&lt;br/&gt;Kind regards,&amp;nbsp;&lt;br/&gt;Esther&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26195"&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;Suposse you have three &amp;lt;trial&amp;gt; elements a, b and c. You want ten each, and /branch to them randomly. Then you do&lt;br/&gt;&lt;br/&gt;&amp;lt;list triallist&amp;gt;&lt;br/&gt;/ items = (trial.a, trial.b, trial.c)&lt;br/&gt;/ poolsize = 30&lt;br/&gt;/ selectionmode = random&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;trial example&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [if (true) list.triallist.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26197"&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;Thanks!!&lt;br/&gt;</description><pubDate>Wed, 19 Dec 2018 03:29:53 GMT</pubDate><dc:creator>EstherKlinkenberg</dc:creator></item><item><title>RE: Random trial selection with branching</title><link>https://forums.millisecond.com/Topic26197.aspx</link><description>&lt;div data-id="26195" class="if-quote-wrapper" unselectable="on" data-guid="1545059840300"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26195" 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="26195" 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="26195" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;EstherKlinkenberg - Monday, December 17, 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-26195"&gt;&lt;div class="if-quote-message-margin"&gt;Dear all,&lt;br/&gt;&lt;br/&gt;I'm struggling to create an experiment in which Inquisit randomly selects one of my three trial types. I've got multiple trials differing in how fast a stimulus will be presented after the mouse click of a participant. I would like to add a condition in which the trials are selected randomly.&lt;br/&gt;&lt;br/&gt;my branching code:&lt;br/&gt;&lt;br/&gt;/ branch = [if (trial.1to4arrow_direct_500.response == "player4label") trial.1to3arrow_direct_500_excluded]&lt;br/&gt;/ branch = [if (trial.1to4arrow_direct_500.response == 0) trial.1to4_direct_500]&lt;br/&gt;&lt;br/&gt;In both the trial.1to3arrow_direct_500_excluded and the trial.1to4_direct_500 the "500" stands for the ms it takes for a stimulus to appear. I created two other conditions in which the ms are 1000 and 1500. I would like to create a condition in which inquisit randomly selects the 500, 1000 or 1500 ms trial. I started making a &amp;lt;list&amp;gt; element with all the trials, however, now I am not sure how to tell inquisit to randomly select a trial from that list (including the if statements for the responses).&lt;br/&gt;&lt;br/&gt;I hope this makes sense, if not, I could try explaining it with my whole code but since it is quite elaborate I hope this is clear enough.&lt;br/&gt;&lt;br/&gt;Thank you in advance for helping!&lt;br/&gt;&lt;br/&gt;Kind regards,&amp;nbsp;&lt;br/&gt;Esther&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26195"&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;Suppose you have three &amp;lt;trial&amp;gt; elements a, b and c. You want ten each, and /branch to them randomly. Then you do&lt;br/&gt;&lt;br/&gt;&amp;lt;list triallist&amp;gt;&lt;br/&gt;/ items = (trial.a, trial.b, trial.c)&lt;br/&gt;/ poolsize = 30&lt;br/&gt;/ selectionmode = random&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;trial example&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [if (true) list.triallist.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 17 Dec 2018 07:20:21 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>