﻿<?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  » aborting experiment conditional on response</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:24 GMT</lastBuildDate><ttl>20</ttl><item><title>aborting experiment conditional on response</title><link>https://forums.millisecond.com/Topic26640.aspx</link><description>hello!&lt;br/&gt;&lt;br/&gt;during the instructions portion of my task, participants have to correctly respond to some questions before starting the real task. however, if they exit out of the experiment, the next file within the batch section automatically begins to load allowing them to continue with the experiment. is there a command or a way that forces them to exit the whole experiment?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;thank you!</description><pubDate>Fri, 25 Sep 2020 02:42:39 GMT</pubDate><dc:creator>nrouhani</dc:creator></item><item><title>RE: aborting experiment conditional on response</title><link>https://forums.millisecond.com/Topic29776.aspx</link><description>&lt;br/&gt;Thank you - this is exactly what I was looking for!</description><pubDate>Fri, 25 Sep 2020 02:42:39 GMT</pubDate><dc:creator>James Rounds</dc:creator></item><item><title>RE: aborting experiment conditional on response</title><link>https://forums.millisecond.com/Topic26643.aspx</link><description>&lt;div data-id="26642" class="if-quote-wrapper" unselectable="on" data-guid="1554319739268"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26642" 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="26642" 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="26642" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nrouhani - Wednesday, April 3, 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-26642"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26641" class="if-quote-wrapper" unselectable="on" data-guid="1554319739268"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26641" 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="26641" 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="26641" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, April 3, 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-26641"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26640" class="if-quote-wrapper" unselectable="on" data-guid="1554319739268"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26640" 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="26640" 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="26640" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nrouhani - Wednesday, April 3, 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-26640"&gt;&lt;div class="if-quote-message-margin"&gt;hello!&lt;br/&gt;&lt;br/&gt;during the instructions portion of my task, participants have to correctly respond to some questions before starting the real task. however, if they exit out of the experiment, the next file within the batch section automatically begins to load allowing them to continue with the experiment. is there a command or a way that forces them to exit the whole experiment?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="26640"&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 terminate the entire batch of scripts by calling script.abort(true) conditionally /ontrialend (or /onblockend, depending on your script's structure).&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26641"&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;thank you for this response! is there a way to do this on a surveypage? based on previous questions i've created the following, but when i dropdown to "abort" nothing happens, thank you!&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage fail&amp;gt;&lt;br/&gt;/ caption = "You did not answer every question correctly. Please re-read the instructions"&amp;nbsp;&lt;br/&gt;/ questions = [1=abort]&lt;br/&gt;/ fontstyle = ("Arial", 20)&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ nextbuttonposition = (-10%, -10%)&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp; if (dropdown.abort.response == "Abort") script.abort(true)&lt;br/&gt;]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;dropdown abort&amp;gt;&lt;br/&gt;/ options = ("Keep going", "Abort")&lt;br/&gt;/ defaultresponse = "Keep going"&lt;br/&gt;&amp;lt;/dropdown&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26642"&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 this on a surveypage, but as noted before the attribute you need to use is &lt;strong&gt;/ontrialend&lt;/strong&gt;, not /branch:&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage fail&amp;gt;&lt;br/&gt;/ caption = "You did not answer every question correctly. Please re-read the instructions"&amp;nbsp;&lt;br/&gt;/ questions = [1=abort]&lt;br/&gt;/ fontstyle = ("Arial", 20)&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ nextbuttonposition = (-10%, -10%)&lt;br/&gt;/ &lt;strong&gt;ontrialend &lt;/strong&gt;= [&lt;br/&gt;&amp;nbsp; if (dropdown.abort.response == "Abort") script.abort(true)&lt;br/&gt;]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 03 Apr 2019 12:30:16 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: aborting experiment conditional on response</title><link>https://forums.millisecond.com/Topic26642.aspx</link><description>&lt;div data-id="26641" class="if-quote-wrapper" unselectable="on" data-guid="1554318132355"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26641" 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="26641" 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="26641" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, April 3, 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-26641"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26640" class="if-quote-wrapper" unselectable="on" data-guid="1554318132355"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26640" 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="26640" 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="26640" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nrouhani - Wednesday, April 3, 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-26640"&gt;&lt;div class="if-quote-message-margin"&gt;hello!&lt;br/&gt;&lt;br/&gt;during the instructions portion of my task, participants have to correctly respond to some questions before starting the real task. however, if they exit out of the experiment, the next file within the batch section automatically begins to load allowing them to continue with the experiment. is there a command or a way that forces them to exit the whole experiment?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="26640"&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 terminate the entire batch of scripts by calling script.abort(true) conditionally /ontrialend (or /onblockend, depending on your script's structure).&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26641"&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;thank you for this response! is there a way to do this on a surveypage? based on previous questions i've created the following, but when i dropdown to "abort" nothing happens, thank you!&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage fail&amp;gt;&lt;br/&gt;/ caption = "You did not answer every question correctly. Please re-read the instructions"&amp;nbsp;&lt;br/&gt;/ questions = [1=abort]&lt;br/&gt;/ fontstyle = ("Arial", 20)&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ nextbuttonposition = (-10%, -10%)&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp; if (dropdown.abort.response == "Abort") script.abort(true)&lt;br/&gt;]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;dropdown abort&amp;gt;&lt;br/&gt;/ options = ("Keep going", "Abort")&lt;br/&gt;/ defaultresponse = "Keep going"&lt;br/&gt;&amp;lt;/dropdown&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 03 Apr 2019 12:03:45 GMT</pubDate><dc:creator>nrouhani</dc:creator></item><item><title>RE: aborting experiment conditional on response</title><link>https://forums.millisecond.com/Topic26641.aspx</link><description>&lt;div data-id="26640" class="if-quote-wrapper" unselectable="on" data-guid="1554316355353"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26640" 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="26640" 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="26640" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nrouhani - Wednesday, April 3, 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-26640"&gt;&lt;div class="if-quote-message-margin"&gt;hello!&lt;br/&gt;&lt;br/&gt;during the instructions portion of my task, participants have to correctly respond to some questions before starting the real task. however, if they exit out of the experiment, the next file within the batch section automatically begins to load allowing them to continue with the experiment. is there a command or a way that forces them to exit the whole experiment?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="26640"&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 terminate the entire batch of scripts by calling script.abort(true) conditionally /ontrialend (or /onblockend, depending on your script's structure).&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/functions/abort.htm&lt;/a&gt;&lt;br/&gt;</description><pubDate>Wed, 03 Apr 2019 11:35:05 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>