﻿<?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  » Giving participants the option to repeat a practice trial</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 13 Sep 2026 23:28:24 GMT</lastBuildDate><ttl>20</ttl><item><title>Giving participants the option to repeat a practice trial</title><link>https://forums.millisecond.com/Topic22849.aspx</link><description>Hi&lt;br/&gt;&lt;br/&gt;I'd like to give participants the option to repeat a practice trial. I have looked on this forum, and tried to replicate code which people have posted to achieve this. Below is a Minimal Worked Example (MWE). The critical line is the branch within the block 'practiceBlock'. Unfortunately this does not seem to work.&lt;br/&gt;&lt;br/&gt;Does anyone have any suggestions?&lt;br/&gt;&lt;br/&gt;Cheerio&lt;br/&gt;&lt;br/&gt;Nick&lt;br/&gt;&lt;br/&gt;&amp;lt;item practiceItems&amp;gt;&lt;br/&gt;/ 1 = "Press Y or N"&lt;br/&gt;/ 2 = "Press Y for Yes, or N for No" &lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text practiceText&amp;gt;&lt;br/&gt;/ items = practiceItems&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial practiceTrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = practiceText]&lt;br/&gt;/ validresponse = ("y", "n")&lt;br/&gt;/ correctresponse = ("y")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block practiceBlock&amp;gt;&lt;br/&gt;/ trials = [1-2 = practiceTrial]&lt;br/&gt;/ branch = [if(trial.repeattrial.response=="yes")block.practiceBlock]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial repeattrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=ask,yes,no]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (yes,no)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text ask&amp;gt;&lt;br/&gt;/ items = ("Wanna repeat the block?")&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, I do.")&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, I don't.")&lt;br/&gt;/ position = (60%, 60%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt exp&amp;gt;&lt;br/&gt;/ blocks = [1 = practiceBlock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 14 Nov 2017 08:34:51 GMT</pubDate><dc:creator>Nick Riches</dc:creator></item><item><title>RE: Giving participants the option to repeat a practice trial</title><link>https://forums.millisecond.com/Topic22868.aspx</link><description>&lt;div data-id="22852" class="if-quote-wrapper" unselectable="on" data-guid="1510677276188"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22852" 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="22852" 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="22852" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, November 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22852"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22849" class="if-quote-wrapper" unselectable="on" data-guid="1510677276188"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22849" 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="22849" 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="22849" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Nick Riches - Monday, November 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22849"&gt;&lt;div class="if-quote-message-margin"&gt;Hi&lt;br/&gt;&lt;br/&gt;I'd like to give participants the option to repeat a practice trial. I have looked on this forum, and tried to replicate code which people have posted to achieve this. Below is a Minimal Worked Example (MWE). The critical line is the branch within the block 'practiceBlock'. Unfortunately this does not seem to work.&lt;br/&gt;&lt;br/&gt;Does anyone have any suggestions?&lt;br/&gt;&lt;br/&gt;Cheerio&lt;br/&gt;&lt;br/&gt;Nick&lt;br/&gt;&lt;br/&gt;&amp;lt;item practiceItems&amp;gt;&lt;br/&gt;/ 1 = "Press Y or N"&lt;br/&gt;/ 2 = "Press Y for Yes, or N for No" &lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text practiceText&amp;gt;&lt;br/&gt;/ items = practiceItems&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial practiceTrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = practiceText]&lt;br/&gt;/ validresponse = ("y", "n")&lt;br/&gt;/ correctresponse = ("y")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block practiceBlock&amp;gt;&lt;br/&gt;/ trials = [1-2 = practiceTrial]&lt;br/&gt;/ branch = [if(trial.repeattrial.response=="yes")block.practiceBlock]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial repeattrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=ask,yes,no]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (yes,no)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text ask&amp;gt;&lt;br/&gt;/ items = ("Wanna repeat the block?")&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, I do.")&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, I don't.")&lt;br/&gt;/ position = (60%, 60%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt exp&amp;gt;&lt;br/&gt;/ blocks = [1 = practiceBlock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22849"&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;The /branch isn't the problem. The problem is that you don't ever actually execute &amp;lt;trial repeattrial&amp;gt;. Your code should read:&lt;br/&gt;&lt;br/&gt;&amp;lt;block practiceBlock&amp;gt;&lt;br/&gt;/ trials = [1-2 = practiceTrial; &lt;strong&gt;3 = repeattrial]&lt;/strong&gt;&lt;br/&gt;/ branch = [if(trial.repeattrial.response=="yes")block.practiceBlock]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22852"&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;Many thanks. That works a treat. And so simple....!&lt;br/&gt;</description><pubDate>Tue, 14 Nov 2017 08:34:51 GMT</pubDate><dc:creator>Nick Riches</dc:creator></item><item><title>RE: Giving participants the option to repeat a practice trial</title><link>https://forums.millisecond.com/Topic22852.aspx</link><description>&lt;div data-id="22849" class="if-quote-wrapper" unselectable="on" data-guid="1510591011413"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22849" 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="22849" 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="22849" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Nick Riches - Monday, November 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22849"&gt;&lt;div class="if-quote-message-margin"&gt;Hi&lt;br/&gt;&lt;br/&gt;I'd like to give participants the option to repeat a practice trial. I have looked on this forum, and tried to replicate code which people have posted to achieve this. Below is a Minimal Worked Example (MWE). The critical line is the branch within the block 'practiceBlock'. Unfortunately this does not seem to work.&lt;br/&gt;&lt;br/&gt;Does anyone have any suggestions?&lt;br/&gt;&lt;br/&gt;Cheerio&lt;br/&gt;&lt;br/&gt;Nick&lt;br/&gt;&lt;br/&gt;&amp;lt;item practiceItems&amp;gt;&lt;br/&gt;/ 1 = "Press Y or N"&lt;br/&gt;/ 2 = "Press Y for Yes, or N for No" &lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text practiceText&amp;gt;&lt;br/&gt;/ items = practiceItems&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial practiceTrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = practiceText]&lt;br/&gt;/ validresponse = ("y", "n")&lt;br/&gt;/ correctresponse = ("y")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block practiceBlock&amp;gt;&lt;br/&gt;/ trials = [1-2 = practiceTrial]&lt;br/&gt;/ branch = [if(trial.repeattrial.response=="yes")block.practiceBlock]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial repeattrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=ask,yes,no]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (yes,no)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text ask&amp;gt;&lt;br/&gt;/ items = ("Wanna repeat the block?")&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, I do.")&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, I don't.")&lt;br/&gt;/ position = (60%, 60%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt exp&amp;gt;&lt;br/&gt;/ blocks = [1 = practiceBlock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22849"&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;The /branch isn't the problem. The problem is that you don't ever actually execute &amp;lt;trial repeattrial&amp;gt;. Your code should read:&lt;br/&gt;&lt;br/&gt;&amp;lt;block practiceBlock&amp;gt;&lt;br/&gt;/ trials = [1-2 = practiceTrial; &lt;strong&gt;3 = repeattrial]&lt;/strong&gt;&lt;br/&gt;/ branch = [if(trial.repeattrial.response=="yes")block.practiceBlock]&lt;br/&gt;&amp;lt;/block&amp;gt;</description><pubDate>Mon, 13 Nov 2017 08:38:49 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>