﻿<?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  » branching if incorrect</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:26 GMT</lastBuildDate><ttl>20</ttl><item><title>branching if incorrect</title><link>https://forums.millisecond.com/Topic29869.aspx</link><description>Hi,&amp;nbsp;&lt;br/&gt;Super quick question. This is what I have so far, I am trying to repeat the block (for maximum 3 times) if any of the three questions were answered incorrectly. &lt;br/&gt;It returns an error in the block's second branch statement.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Q1&amp;gt;&lt;br/&gt;/ stimulustimes = [1=Q1]&lt;br/&gt;/ correctresponse = ("2")&lt;br/&gt;/ validresponse = ("1","2","3")&lt;br/&gt;/ errormessage = true(Q1Incorrect,10000)&lt;br/&gt;/ correctmessage = true(Q1Correct,10000)&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Q2&amp;gt;&lt;br/&gt;/ stimulustimes = [1=Q2]&lt;br/&gt;/ correctresponse = ("2")&lt;br/&gt;/ validresponse = ("1","2","3")&lt;br/&gt;/ errormessage = true(Q2Incorrect,10000)&lt;br/&gt;/ correctmessage = true(Q2Correct,10000)&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Q3&amp;gt;&lt;br/&gt;/ stimulustimes = [1=Q3]&lt;br/&gt;/ correctresponse = ("3")&lt;br/&gt;/ validresponse = ("1","2","3")&lt;br/&gt;/ errormessage = true(Q3Incorrect,10000)&lt;br/&gt;/ correctmessage = true(Q3Correct,10000)&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/ trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block quiz&amp;gt;&lt;br/&gt;/ trials = [1=Q1; 2=Q2; 3=Q3]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ screencolor = white&lt;br/&gt;/ branch = [if (block.quiz.count &amp;gt; 3) 0]&lt;br/&gt;/ branch = [if (trial.Q1.incorrect || trial.Q2.incorrect || trial.Q3.incorrect) block.quiz]&lt;br/&gt;&amp;lt;/block&amp;gt;</description><pubDate>Mon, 12 Oct 2020 20:21:11 GMT</pubDate><dc:creator>anisa_khalfan</dc:creator></item><item><title>RE: branching if incorrect</title><link>https://forums.millisecond.com/Topic29870.aspx</link><description>&lt;blockquote data-id="29869" class="if-quote-wrapper" unselectable="on" data-guid="1602533951032" id="if_insertedNode_1602533950483" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29869" 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="29869" 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="29869" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;anisa_khalfan - 10/12/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-29869"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&amp;nbsp;&lt;br/&gt;Super quick question. This is what I have so far, I am trying to repeat the block (for maximum 3 times) if any of the three questions were answered incorrectly. &lt;br/&gt;It returns an error in the block's second branch statement.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Q1&amp;gt;&lt;br/&gt;/ stimulustimes = [1=Q1]&lt;br/&gt;/ correctresponse = ("2")&lt;br/&gt;/ validresponse = ("1","2","3")&lt;br/&gt;/ errormessage = true(Q1Incorrect,10000)&lt;br/&gt;/ correctmessage = true(Q1Correct,10000)&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Q2&amp;gt;&lt;br/&gt;/ stimulustimes = [1=Q2]&lt;br/&gt;/ correctresponse = ("2")&lt;br/&gt;/ validresponse = ("1","2","3")&lt;br/&gt;/ errormessage = true(Q2Incorrect,10000)&lt;br/&gt;/ correctmessage = true(Q2Correct,10000)&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Q3&amp;gt;&lt;br/&gt;/ stimulustimes = [1=Q3]&lt;br/&gt;/ correctresponse = ("3")&lt;br/&gt;/ validresponse = ("1","2","3")&lt;br/&gt;/ errormessage = true(Q3Incorrect,10000)&lt;br/&gt;/ correctmessage = true(Q3Correct,10000)&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/ trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block quiz&amp;gt;&lt;br/&gt;/ trials = [1=Q1; 2=Q2; 3=Q3]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ screencolor = white&lt;br/&gt;/ branch = [if (block.quiz.count &amp;gt; 3) 0]&lt;br/&gt;/ branch = [if (trial.Q1.incorrect || trial.Q2.incorrect || trial.Q3.incorrect) block.quiz]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29869"&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;There is no such thing as an incorrect property.&lt;br/&gt;&lt;br/&gt;&amp;lt;block quiz&amp;gt;&lt;br/&gt;/ trials = [1=Q1; 2=Q2; 3=Q3]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ screencolor = white&lt;br/&gt;/ branch = [if (block.quiz.count &amp;gt; 3) 0]&lt;br/&gt;/ branch = [if (trial.Q1.&lt;strong&gt;incorrect &lt;/strong&gt;|| trial.Q2.&lt;strong&gt;incorrect &lt;/strong&gt;|| trial.Q3.&lt;strong&gt;incorrect&lt;/strong&gt;) block.quiz]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;The property you're looking for is the error property&lt;br/&gt;&lt;br/&gt;&amp;lt;block quiz&amp;gt;&lt;br/&gt;/ trials = [1=Q1; 2=Q2; 3=Q3]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ screencolor = white&lt;br/&gt;/ branch = [if (block.quiz.count &amp;gt; 3) 0]&lt;br/&gt;/ branch = [if (trial.Q1.&lt;strong&gt;error &lt;/strong&gt;|| trial.Q2.&lt;strong&gt;error &lt;/strong&gt;|| trial.Q3.&lt;strong&gt;error &lt;/strong&gt;) block.quiz]&lt;br/&gt;&amp;lt;/block&amp;gt;</description><pubDate>Mon, 12 Oct 2020 20:21:11 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>