﻿<?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  » Repeating blocks with brench</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 11 Sep 2026 19:31:23 GMT</lastBuildDate><ttl>20</ttl><item><title>Repeating blocks with brench</title><link>https://forums.millisecond.com/Topic29927.aspx</link><description>Hi,&amp;nbsp;&lt;br/&gt;I need to create an experiment which consists of two learning blocks and a testing block. In the learning blocks a participant views pairs of words and learns the association between them and in the testing block they classify whether the two words presented follow the same rule as the one they learned in the learning phase. However, I need participants to really learn the rule, so they can move forward in the study only if they get 85% correct responses in the testing block. If not, they repeat the whole experiment. They can repeat the whole thing max. 5 times (they can go over the whole experiments 6 times in total). &lt;br/&gt;&lt;br/&gt;Additionally at the end of the testing block, I would like participants to see their score. I created trials with feedback (positive for scores above 85% and negative for below 85%) but do not know how to incorporate them in my script.&amp;nbsp;Below is what I tried for coding the testing block (everything works apart from the branch elements):&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block testing_healthiness&amp;gt;&lt;br/&gt;/ preinstructions = (instructions_testing_block_start)&lt;br/&gt;/ trials = [1-20 = noreplace(test_highhealth_lowcomp, test_lowcomp_highhealth, test_lowhealth_highcomp, test_highcomp_lowhealth, &lt;br/&gt;test_highhealth_lowwarm, test_lowwarm_highhealth, test_lowhealth_highwarm, test_highwarm_lowhealth,&lt;br/&gt;test_highhealth_highcomp, test_highcomp_highhealth, test_lowhealth_lowcomp, test_lowcomp_lowhealth)]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ onblockend = [values.repetition = block.testing_healthiness.count]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;gt;= 85) trial.feedback_positive_health]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;lt; 85) trial.feedback_negative_health]&lt;br/&gt;/ branch=[if (block.testing_healthiness.percentcorrect &amp;lt; 85) block.laerning_rule_consistent_healthiness]&lt;br/&gt;/ branch=[if (block.testing_healthiness.count &amp;gt; 6) 0]&lt;br/&gt;&amp;lt;/block&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Perhaps I am using branch incorrectly. Should I use branch at different levels (trials or experiment)? How can I repeat the whole experiment not just one block?&amp;nbsp;&lt;br/&gt;I would appreciate help with this. &lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 22 Oct 2020 18:55:22 GMT</pubDate><dc:creator>estarska</dc:creator></item><item><title>RE: Repeating blocks with brench</title><link>https://forums.millisecond.com/Topic29972.aspx</link><description>&lt;blockquote data-id="29955" class="if-quote-wrapper" unselectable="on" data-guid="1603392899833" contenteditable="false" id="if_insertedNode_1603392898710"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29955" 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="29955" 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="29955" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 10/22/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29955"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="29954" class="if-quote-wrapper" unselectable="on" data-guid="1603392899833" id="if_insertedNode_1603367356000" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29954" 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="29954" 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="29954" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;estarska - 10/22/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29954"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Dave, thank you! Presenting feedback with a block instead of trial worked perfectly!&lt;br/&gt;&lt;br/&gt;However, I still have issues with repeating blocks based on performance. &lt;br/&gt;&lt;br/&gt;You suggested:&lt;br/&gt;[quote]&amp;nbsp;Or just run all blocks 6 times per your &amp;lt;expt&amp;gt;'s /blocks. Define a /stop condition in the expt that terminates things when the desired performance criterion is reached.[/quote]&lt;br/&gt;So I tried the below code (to repeat each block 3 times):&lt;br/&gt;[code]&amp;lt;expt Learning_rule_health&amp;gt;&lt;br/&gt;/ blocks = [1,4,7 = laerning_rule_consistent_healthiness; 2,5,8 = laerning_rule_INconsistent_healthiness; 3,6,9 = testing_healthiness]&lt;br/&gt;/ stop = [block.testing_healthiness.percentcorrect &amp;gt;= 85]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;[/code]&lt;br/&gt;However, it does not seem to be working (when a correct response in the testing block is provided, the experiment closes, so the entire block is not presented, nor are postinstructions). I tried totalpercentcorrect instead of&amp;nbsp;percentcorrect but it does not work either. Could you please advise which element I should specify differently?&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29954"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Create a &amp;lt;value&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ practiceperfomrnacemet = false&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;do&lt;br/&gt;&lt;br/&gt;&amp;lt;block feedback_positive_health&amp;gt;&lt;br/&gt;/ onblockend = [values.practiceperfomrnacemet = true]&lt;br/&gt;/ trials = [1=feedback_positive_health]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block feedback_negative_health&amp;gt;&lt;br/&gt;/ onblockend = [values.practiceperfomrnacemet = false]&lt;br/&gt;/ trials = [1=feedback_negative_health]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;with&lt;br/&gt;&lt;br/&gt;&amp;lt;expt Learning_rule_health&amp;gt;&lt;br/&gt;/ blocks = [1,4,7 = laerning_rule_consistent_healthiness; 2,5,8 = laerning_rule_INconsistent_healthiness; 3,6,9 = testing_healthiness]&lt;br/&gt;/ stop = [values.practiceperformancemet]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29955"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;It worked perfectly! Thanks a million!</description><pubDate>Thu, 22 Oct 2020 18:55:22 GMT</pubDate><dc:creator>estarska</dc:creator></item><item><title>RE: Repeating blocks with brench</title><link>https://forums.millisecond.com/Topic29955.aspx</link><description>&lt;blockquote data-id="29954" class="if-quote-wrapper" unselectable="on" data-guid="1603367357489" id="if_insertedNode_1603367356000" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29954" 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="29954" 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="29954" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;estarska - 10/22/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29954"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Dave, thank you! Presenting feedback with a block instead of trial worked perfectly!&lt;br/&gt;&lt;br/&gt;However, I still have issues with repeating blocks based on performance. &lt;br/&gt;&lt;br/&gt;You suggested:&lt;br/&gt;[quote]&amp;nbsp;Or just run all blocks 6 times per your &amp;lt;expt&amp;gt;'s /blocks. Define a /stop condition in the expt that terminates things when the desired performance criterion is reached.[/quote]&lt;br/&gt;So I tried the below code (to repeat each block 3 times):&lt;br/&gt;[code]&amp;lt;expt Learning_rule_health&amp;gt;&lt;br/&gt;/ blocks = [1,4,7 = laerning_rule_consistent_healthiness; 2,5,8 = laerning_rule_INconsistent_healthiness; 3,6,9 = testing_healthiness]&lt;br/&gt;/ stop = [block.testing_healthiness.percentcorrect &amp;gt;= 85]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;[/code]&lt;br/&gt;However, it does not seem to be working (when a correct response in the testing block is provided, the experiment closes, so the entire block is not presented, nor are postinstructions). I tried totalpercentcorrect instead of&amp;nbsp;percentcorrect but it does not work either. Could you please advise which element I should specify differently?&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29954"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Create a &amp;lt;value&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ practiceperfomrnacemet = false&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;do&lt;br/&gt;&lt;br/&gt;&amp;lt;block feedback_positive_health&amp;gt;&lt;br/&gt;/ onblockend = [values.practiceperfomrnacemet = true]&lt;br/&gt;/ trials = [1=feedback_positive_health]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block feedback_negative_health&amp;gt;&lt;br/&gt;/ onblockend = [values.practiceperfomrnacemet = false]&lt;br/&gt;/ trials = [1=feedback_negative_health]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;with&lt;br/&gt;&lt;br/&gt;&amp;lt;expt Learning_rule_health&amp;gt;&lt;br/&gt;/ blocks = [1,4,7 = laerning_rule_consistent_healthiness; 2,5,8 = laerning_rule_INconsistent_healthiness; 3,6,9 = testing_healthiness]&lt;br/&gt;/ stop = [values.practiceperformancemet]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 22 Oct 2020 11:52:15 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Repeating blocks with brench</title><link>https://forums.millisecond.com/Topic29954.aspx</link><description>Dave, thank you! Presenting feedback with a block instead of trial worked perfectly!&lt;br/&gt;&lt;br/&gt;However, I still have issues with repeating blocks based on performance. &lt;br/&gt;&lt;br/&gt;You suggested:&lt;br/&gt;[quote]&amp;nbsp;Or just run all blocks 6 times per your &amp;lt;expt&amp;gt;'s /blocks. Define a /stop condition in the expt that terminates things when the desired performance criterion is reached.[/quote]&lt;br/&gt;So I tried the below code (to repeat each block 3 times):&lt;br/&gt;[code]&amp;lt;expt Learning_rule_health&amp;gt;&lt;br/&gt;/ blocks = [1,4,7 = laerning_rule_consistent_healthiness; 2,5,8 = laerning_rule_INconsistent_healthiness; 3,6,9 = testing_healthiness]&lt;br/&gt;/ stop = [block.testing_healthiness.percentcorrect &amp;gt;= 85]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;[/code]&lt;br/&gt;However, it does not seem to be working (when a correct response in the testing block is provided, the experiment closes, so the entire block is not presented, nor are postinstructions). I tried totalpercentcorrect instead of&amp;nbsp;percentcorrect but it does not work either. Could you please advise which element I should specify differently?&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 22 Oct 2020 09:26:08 GMT</pubDate><dc:creator>estarska</dc:creator></item><item><title>RE: Repeating blocks with brench</title><link>https://forums.millisecond.com/Topic29933.aspx</link><description>&lt;blockquote data-id="29931" class="if-quote-wrapper" unselectable="on" data-guid="1603197874811" id="if_insertedNode_1603197873752" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29931" 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="29931" 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="29931" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;estarska - 10/20/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29931"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Dave, thank you for your reply!&amp;nbsp;&lt;br/&gt;I have a follow up question:&lt;br/&gt;&lt;br/&gt;[quote]&amp;nbsp;/branch'es ought to be at the same "level": A &amp;lt;block&amp;gt; can branch to another block. A &amp;lt;trial&amp;gt; can branch to another trial. A block cannot branch to a trial, and a trial cannot branch to a block.[/quote]&lt;br/&gt;- So I should add my feedback at the level of each trial? Even though I want it to be dependent on performance across ALL trials in a block? Or rather my feedback should be a separate block to branch back to a block?&lt;br/&gt;&lt;br/&gt;[quote]At the end, you branch back to the first block. From the first block, you branch to the second block, from the second to the third, and so on.[/quote]&lt;br/&gt;- You mean the end of a block, right?&lt;a class="if-quote-goto quote-link" href="#" data-id="29931"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt; - So I should add my feedback at the level of each trial? Even though I want it to be dependent on performance across ALL trials in a block? Or rather my feedback should be a separate block to branch back to a block?&lt;br/&gt;&lt;br/&gt;No. Your block cannot branch to trial elements. So branch to a block instead that runs those feedback trial elements.&lt;br/&gt;&lt;br/&gt;This&lt;br/&gt;&lt;br/&gt;&amp;lt;&lt;strong&gt;block &lt;/strong&gt;testing_healthiness&amp;gt;&lt;br/&gt;/ preinstructions = (instructions_testing_block_start)&lt;br/&gt;/ trials = [1-20 = noreplace(test_highhealth_lowcomp, test_lowcomp_highhealth, test_lowhealth_highcomp, test_highcomp_lowhealth,&lt;br/&gt;test_highhealth_lowwarm, test_lowwarm_highhealth, test_lowhealth_highwarm, test_highwarm_lowhealth,&lt;br/&gt;test_highhealth_highcomp, test_highcomp_highhealth, test_lowhealth_lowcomp, test_lowcomp_lowhealth)]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ onblockend = [values.repetition = block.testing_healthiness.count]&lt;br/&gt;&lt;strong&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;gt;= 85) &lt;i&gt;trial&lt;/i&gt;.feedback_positive_health]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;lt; 85) &lt;i&gt;trial&lt;/i&gt;.feedback_negative_health]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;cannot work. So instead do&lt;br/&gt;&lt;br/&gt;&amp;lt;block testing_healthiness&amp;gt;&lt;br/&gt;/ preinstructions = (instructions_testing_block_start)&lt;br/&gt;/ trials = [1-20 = noreplace(test_highhealth_lowcomp, test_lowcomp_highhealth, test_lowhealth_highcomp, test_highcomp_lowhealth,&lt;br/&gt;test_highhealth_lowwarm, test_lowwarm_highhealth, test_lowhealth_highwarm, test_highwarm_lowhealth,&lt;br/&gt;test_highhealth_highcomp, test_highcomp_highhealth, test_lowhealth_lowcomp, test_lowcomp_lowhealth)]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ onblockend = [values.repetition = block.testing_healthiness.count]&lt;br/&gt;&lt;strong&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;gt;= 85) &lt;i&gt;block&lt;/i&gt;.feedback_positive_health]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;lt; 85) &lt;i&gt;block&lt;/i&gt;.feedback_negative_health]&lt;/strong&gt;&lt;br/&gt;/ branch=[if (block.testing_healthiness.percentcorrect &amp;lt; 85) block.laerning_rule_consistent_healthiness]&lt;br/&gt;/ branch=[if (block.testing_healthiness.count &amp;gt; 6) 0]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;block feedback_positive_health&amp;gt;&lt;br/&gt;/ trials = [1=feedback_positive_health]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block feedback_negative_health&amp;gt;&lt;br/&gt;/ trials = [1=feedback_negative_health]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;gt; - You mean the end of a block, right?&lt;br/&gt;&lt;br/&gt;A /branch at the block-level is always only executed at the end of the block, so yes. Just like a branch at the trial-level is executed at the end of the trial.&lt;br/&gt;</description><pubDate>Tue, 20 Oct 2020 12:51:46 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Repeating blocks with brench</title><link>https://forums.millisecond.com/Topic29931.aspx</link><description>Hi Dave, thank you for your reply!&amp;nbsp;&lt;br/&gt;I have a follow up question:&lt;br/&gt;&lt;br/&gt;[quote]&amp;nbsp;/branch'es ought to be at the same "level": A &amp;lt;block&amp;gt; can branch to another block. A &amp;lt;trial&amp;gt; can branch to another trial. A block cannot branch to a trial, and a trial cannot branch to a block.[/quote]&lt;br/&gt;- So I should add my feedback at the level of each trial? Even though I want it to be dependent on performance across ALL trials in a block? Or rather my feedback should be a separate block to branch back to a block?&lt;br/&gt;&lt;br/&gt;[quote]At the end, you branch back to the first block. From the first block, you branch to the second block, from the second to the third, and so on.[/quote]&lt;br/&gt;- You mean the end of a block, right?</description><pubDate>Tue, 20 Oct 2020 07:15:18 GMT</pubDate><dc:creator>estarska</dc:creator></item><item><title>RE: Repeating blocks with brench</title><link>https://forums.millisecond.com/Topic29930.aspx</link><description>&lt;blockquote data-id="29928" class="if-quote-wrapper" unselectable="on" data-guid="1603177146105" contenteditable="false" id="if_insertedNode_1603177144860"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29928" 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="29928" 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="29928" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 10/19/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29928"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="29927" class="if-quote-wrapper" unselectable="on" data-guid="1603177146105" id="if_insertedNode_1603138391395" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29927" 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="29927" 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="29927" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;estarska - 10/19/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29927"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&amp;nbsp;&lt;br/&gt;I need to create an experiment which consists of two learning blocks and a testing block. In the learning blocks a participant views pairs of words and learns the association between them and in the testing block they classify whether the two words presented follow the same rule as the one they learned in the learning phase. However, I need participants to really learn the rule, so they can move forward in the study only if they get 85% correct responses in the testing block. If not, they repeat the whole experiment. They can repeat the whole thing max. 5 times (they can go over the whole experiments 6 times in total). &lt;br/&gt;&lt;br/&gt;Additionally at the end of the testing block, I would like participants to see their score. I created trials with feedback (positive for scores above 85% and negative for below 85%) but do not know how to incorporate them in my script.&amp;nbsp;Below is what I tried for coding the testing block (everything works apart from the branch elements):&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block testing_healthiness&amp;gt;&lt;br/&gt;/ preinstructions = (instructions_testing_block_start)&lt;br/&gt;/ trials = [1-20 = noreplace(test_highhealth_lowcomp, test_lowcomp_highhealth, test_lowhealth_highcomp, test_highcomp_lowhealth, &lt;br/&gt;test_highhealth_lowwarm, test_lowwarm_highhealth, test_lowhealth_highwarm, test_highwarm_lowhealth,&lt;br/&gt;test_highhealth_highcomp, test_highcomp_highhealth, test_lowhealth_lowcomp, test_lowcomp_lowhealth)]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ onblockend = [values.repetition = block.testing_healthiness.count]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;gt;= 85) trial.feedback_positive_health]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;lt; 85) trial.feedback_negative_health]&lt;br/&gt;/ branch=[if (block.testing_healthiness.percentcorrect &amp;lt; 85) block.laerning_rule_consistent_healthiness]&lt;br/&gt;/ branch=[if (block.testing_healthiness.count &amp;gt; 6) 0]&lt;br/&gt;&amp;lt;/block&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Perhaps I am using branch incorrectly. Should I use branch at different levels (trials or experiment)? How can I repeat the whole experiment not just one block?&amp;nbsp;&lt;br/&gt;I would appreciate help with this. &lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29927"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;[code]&amp;lt;block testing_healthiness&amp;gt;&lt;br/&gt;/ preinstructions = (instructions_testing_block_start)&lt;br/&gt;/ trials = [1-20 = noreplace(test_highhealth_lowcomp, test_lowcomp_highhealth, test_lowhealth_highcomp, test_highcomp_lowhealth,&lt;br/&gt;test_highhealth_lowwarm, test_lowwarm_highhealth, test_lowhealth_highwarm, test_highwarm_lowhealth,&lt;br/&gt;test_highhealth_highcomp, test_highcomp_highhealth, test_lowhealth_lowcomp, test_lowcomp_lowhealth)]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ onblockend = [values.repetition = block.testing_healthiness.count]&lt;br/&gt;&lt;strong&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;gt;= 85) trial.feedback_positive_health]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;lt; 85) trial.feedback_negative_health]&lt;/strong&gt;&lt;br/&gt;/ branch=[if (block.testing_healthiness.percentcorrect &amp;lt; 85) block.laerning_rule_consistent_healthiness]&lt;br/&gt;/ branch=[if (block.testing_healthiness.count &amp;gt; 6) 0]&lt;br/&gt;&amp;lt;/block&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;/branch'es ought to be at the same "level": A &amp;lt;block&amp;gt; can branch to another block. A &amp;lt;trial&amp;gt; can branch to another trial. A block cannot branch to a trial, and a trial cannot branch to a block.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;gt; How can I repeat the whole experiment not just one block?&lt;br/&gt;&lt;br/&gt;At the end, you branch back to the first block. From the first block, you branch to the second block, from the second to the third, and so on.&lt;br/&gt;&lt;br/&gt;Or just run all blocks 6 times per your &amp;lt;expt&amp;gt;'s /blocks. Define a /stop condition in the expt that terminates things when the desired performance criterion is reached.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29928"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;</description><pubDate>Tue, 20 Oct 2020 07:03:10 GMT</pubDate><dc:creator>estarska</dc:creator></item><item><title>RE: Repeating blocks with brench</title><link>https://forums.millisecond.com/Topic29928.aspx</link><description>&lt;blockquote data-id="29927" class="if-quote-wrapper" unselectable="on" data-guid="1603138392050" id="if_insertedNode_1603138391395" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29927" 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="29927" 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="29927" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;estarska - 10/19/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29927"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&amp;nbsp;&lt;br/&gt;I need to create an experiment which consists of two learning blocks and a testing block. In the learning blocks a participant views pairs of words and learns the association between them and in the testing block they classify whether the two words presented follow the same rule as the one they learned in the learning phase. However, I need participants to really learn the rule, so they can move forward in the study only if they get 85% correct responses in the testing block. If not, they repeat the whole experiment. They can repeat the whole thing max. 5 times (they can go over the whole experiments 6 times in total). &lt;br/&gt;&lt;br/&gt;Additionally at the end of the testing block, I would like participants to see their score. I created trials with feedback (positive for scores above 85% and negative for below 85%) but do not know how to incorporate them in my script.&amp;nbsp;Below is what I tried for coding the testing block (everything works apart from the branch elements):&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block testing_healthiness&amp;gt;&lt;br/&gt;/ preinstructions = (instructions_testing_block_start)&lt;br/&gt;/ trials = [1-20 = noreplace(test_highhealth_lowcomp, test_lowcomp_highhealth, test_lowhealth_highcomp, test_highcomp_lowhealth, &lt;br/&gt;test_highhealth_lowwarm, test_lowwarm_highhealth, test_lowhealth_highwarm, test_highwarm_lowhealth,&lt;br/&gt;test_highhealth_highcomp, test_highcomp_highhealth, test_lowhealth_lowcomp, test_lowcomp_lowhealth)]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ onblockend = [values.repetition = block.testing_healthiness.count]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;gt;= 85) trial.feedback_positive_health]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;lt; 85) trial.feedback_negative_health]&lt;br/&gt;/ branch=[if (block.testing_healthiness.percentcorrect &amp;lt; 85) block.laerning_rule_consistent_healthiness]&lt;br/&gt;/ branch=[if (block.testing_healthiness.count &amp;gt; 6) 0]&lt;br/&gt;&amp;lt;/block&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Perhaps I am using branch incorrectly. Should I use branch at different levels (trials or experiment)? How can I repeat the whole experiment not just one block?&amp;nbsp;&lt;br/&gt;I would appreciate help with this. &lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29927"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;[code]&amp;lt;block testing_healthiness&amp;gt;&lt;br/&gt;/ preinstructions = (instructions_testing_block_start)&lt;br/&gt;/ trials = [1-20 = noreplace(test_highhealth_lowcomp, test_lowcomp_highhealth, test_lowhealth_highcomp, test_highcomp_lowhealth,&lt;br/&gt;test_highhealth_lowwarm, test_lowwarm_highhealth, test_lowhealth_highwarm, test_highwarm_lowhealth,&lt;br/&gt;test_highhealth_highcomp, test_highcomp_highhealth, test_lowhealth_lowcomp, test_lowcomp_lowhealth)]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ onblockend = [values.repetition = block.testing_healthiness.count]&lt;br/&gt;&lt;strong&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;gt;= 85) trial.feedback_positive_health]&lt;br/&gt;/ branch = [if (block.testing_healthiness.percentcorrect &amp;lt; 85) trial.feedback_negative_health]&lt;/strong&gt;&lt;br/&gt;/ branch=[if (block.testing_healthiness.percentcorrect &amp;lt; 85) block.laerning_rule_consistent_healthiness]&lt;br/&gt;/ branch=[if (block.testing_healthiness.count &amp;gt; 6) 0]&lt;br/&gt;&amp;lt;/block&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;/branch'es ought to be at the same "level": A &amp;lt;block&amp;gt; can branch to another block. A &amp;lt;trial&amp;gt; can branch to another trial. A block cannot branch to a trial, and a trial cannot branch to a block.&lt;br/&gt;&lt;br/&gt;&amp;gt; How can I repeat the whole experiment not just one block?&lt;br/&gt;&lt;br/&gt;At the end, you branch back to the first block. From the first block, you branch to the second block, from the second to the third, and so on.&lt;br/&gt;&lt;br/&gt;Or just run all blocks 6 times per your &amp;lt;expt&amp;gt;'s /blocks. Define a /stop condition in the expt that terminates things when the desired performance criterion is reached.&lt;br/&gt;</description><pubDate>Mon, 19 Oct 2020 20:19:45 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>