﻿<?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  » control max trial type in a row</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 22 Sep 2026 03:46:43 GMT</lastBuildDate><ttl>20</ttl><item><title>control max trial type in a row</title><link>https://forums.millisecond.com/Topic28053.aspx</link><description>Hi Dave,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Is there a way in Inquisit to control for the number of the same type of trial that occurs in a row (either by trial type or the type of response made). For example, if my experiment switches between correct and incorrect trials, I do not want more than 4 correct trials in a row to limit participants from pressing yes so many times in a row. Ideally, this would be based on the trial type itself, regardless of how the participant actually responds. Is there a way to do this?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I had tried doing this using the branching attribute, but was unsuccessful.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks!!</description><pubDate>Mon, 02 Dec 2019 17:38:19 GMT</pubDate><dc:creator>lir1995</dc:creator></item><item><title>RE: control max trial type in a row</title><link>https://forums.millisecond.com/Topic28054.aspx</link><description>&lt;div data-id="28053" class="if-quote-wrapper" unselectable="on" data-guid="1575336859980"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28053" 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="28053" 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="28053" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;lir1995 - 12/2/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28053"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Dave,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Is there a way in Inquisit to control for the number of the same type of trial that occurs in a row (either by trial type or the type of response made). For example, if my experiment switches between correct and incorrect trials, I do not want more than 4 correct trials in a row to limit participants from pressing yes so many times in a row. Ideally, this would be based on the trial type itself, regardless of how the participant actually responds. Is there a way to do this?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I had tried doing this using the branching attribute, but was unsuccessful.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks!!&lt;a class="if-quote-goto quote-link" href="#" data-id="28053"&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, you can do so by sampling trials from a &amp;lt;list&amp;gt; and setting the list's /maxrunsize according to your needs. Suppose you have two &amp;lt;trial&amp;gt; elements A and B, 20 trials total (10 x A, 10 x&amp;nbsp; B), and want to allow a maximum of 3 trials of the same type in a row. Then you do:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial a&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial b&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list triallist&amp;gt;&lt;br/&gt;/ items = (trial.a, trial.b)&lt;br/&gt;/ poolsize = 20&lt;br/&gt;/ maxrunsize = 3&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-20 = list.triallist]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 02 Dec 2019 17:38:19 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>