﻿<?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  » Probabilistic reversal learning task in batch aborts prematurely even though script.abort(false)</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 14 Jul 2026 07:17:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Probabilistic reversal learning task in batch aborts prematurely even though script.abort(false)</title><link>https://forums.millisecond.com/Topic28816.aspx</link><description>Hi all,&lt;br/&gt;I have a batch including 6 files that are presented in a specific order. On 4th place the probabilistic reversal learning task (PRL) is situated, followed by 2 questionnaires. Now when testing the whole batch using monkey, the batch worked fine and ended with the 6th questionnaire. Also checking by means of CRTL+Q showed no problems.&amp;nbsp;&lt;br/&gt;When going through the whole script by myself now, after finishing the PRL, the whole batch aborted, not presenting the 5th and 5th questionnaire. I made sure to disable the script.abort command in the PRL, but have no idea now what's going on.&amp;nbsp;&lt;br/&gt;Could someone help?&lt;br/&gt;Thanks so much in advance!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sabrina</description><pubDate>Wed, 22 Apr 2020 11:30:59 GMT</pubDate><dc:creator>SabRV</dc:creator></item><item><title>RE: Probabilistic reversal learning task in batch aborts prematurely even though script.abort(false)</title><link>https://forums.millisecond.com/Topic28831.aspx</link><description>&lt;blockquote data-id="28830" class="if-quote-wrapper" unselectable="on" data-guid="1587555009235" id="if_insertedNode_1587555008747" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28830" 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="28830" 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="28830" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/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-28830"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28829" class="if-quote-wrapper" unselectable="on" data-guid="1587555009235" id="if_insertedNode_1587553802620" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28829" 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="28829" 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="28829" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/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-28829"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28828" class="if-quote-wrapper" unselectable="on" data-guid="1587555009235" id="if_insertedNode_1587553625169" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28828" 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="28828" 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="28828" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/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-28828"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28817" class="if-quote-wrapper" unselectable="on" data-guid="1587555009235" id="if_insertedNode_1587546070061" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28817" 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="28817" 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="28817" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/21/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-28817"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28816" class="if-quote-wrapper" unselectable="on" data-guid="1587555009235" id="if_insertedNode_1587483174962" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28816" 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="28816" 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="28816" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/21/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-28816"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt;I have a batch including 6 files that are presented in a specific order. On 4th place the probabilistic reversal learning task (PRL) is situated, followed by 2 questionnaires. Now when testing the whole batch using monkey, the batch worked fine and ended with the 6th questionnaire. Also checking by means of CRTL+Q showed no problems.&amp;nbsp;&lt;br/&gt;When going through the whole script by myself now, after finishing the PRL, the whole batch aborted, not presenting the 5th and 5th questionnaire. I made sure to disable the script.abort command in the PRL, but have no idea now what's going on.&amp;nbsp;&lt;br/&gt;Could someone help?&lt;br/&gt;Thanks so much in advance!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sabrina&lt;a class="if-quote-goto quote-link" href="#" data-id="28816"&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;I think you missed this one:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial choice&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.feedback;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) &lt;strong&gt;script.abort()&lt;/strong&gt;;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="28817"&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;Hi Dave,&lt;br/&gt;I used this command to abort the script of the PRL after the participant spent a certain time on the task, not to abort the whole batch. Wouldnt that then be / ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) batch.abort();] ?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;Sabrina&lt;a class="if-quote-goto quote-link" href="#" data-id="28828"&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;script.abort() will terminate the whole batch.&lt;br/&gt;&lt;br/&gt;If you want it to only terminate the currently running script, it ought to be script.abort(false).&lt;a class="if-quote-goto quote-link" href="#" data-id="28829"&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;Oh! And it will still work that after the participant spent 1500000 ms on the PRL, the script will abort and the next task of the batch begins?&lt;a class="if-quote-goto quote-link" href="#" data-id="28830"&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;Yes, with script.abort(false), the PRL will terminate, and then the next script will start.</description><pubDate>Wed, 22 Apr 2020 11:30:59 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Probabilistic reversal learning task in batch aborts prematurely even though script.abort(false)</title><link>https://forums.millisecond.com/Topic28830.aspx</link><description>&lt;blockquote data-id="28829" class="if-quote-wrapper" unselectable="on" data-guid="1587553803885" contenteditable="false" id="if_insertedNode_1587553802620"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28829" 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="28829" 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="28829" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/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-28829"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28828" class="if-quote-wrapper" unselectable="on" data-guid="1587553803885" id="if_insertedNode_1587553625169" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28828" 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="28828" 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="28828" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/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-28828"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28817" class="if-quote-wrapper" unselectable="on" data-guid="1587553803885" id="if_insertedNode_1587546070061" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28817" 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="28817" 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="28817" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/21/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-28817"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28816" class="if-quote-wrapper" unselectable="on" data-guid="1587553803885" id="if_insertedNode_1587483174962" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28816" 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="28816" 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="28816" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/21/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-28816"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt;I have a batch including 6 files that are presented in a specific order. On 4th place the probabilistic reversal learning task (PRL) is situated, followed by 2 questionnaires. Now when testing the whole batch using monkey, the batch worked fine and ended with the 6th questionnaire. Also checking by means of CRTL+Q showed no problems.&amp;nbsp;&lt;br/&gt;When going through the whole script by myself now, after finishing the PRL, the whole batch aborted, not presenting the 5th and 5th questionnaire. I made sure to disable the script.abort command in the PRL, but have no idea now what's going on.&amp;nbsp;&lt;br/&gt;Could someone help?&lt;br/&gt;Thanks so much in advance!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sabrina&lt;a class="if-quote-goto quote-link" href="#" data-id="28816"&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;I think you missed this one:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial choice&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.feedback;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) &lt;strong&gt;script.abort()&lt;/strong&gt;;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="28817"&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;Hi Dave,&lt;br/&gt;I used this command to abort the script of the PRL after the participant spent a certain time on the task, not to abort the whole batch. Wouldnt that then be / ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) batch.abort();] ?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;Sabrina&lt;a class="if-quote-goto quote-link" href="#" data-id="28828"&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;script.abort() will terminate the whole batch.&lt;br/&gt;&lt;br/&gt;If you want it to only terminate the currently running script, it ought to be script.abort(false).&lt;a class="if-quote-goto quote-link" href="#" data-id="28829"&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;Oh! And it will still work that after the participant spent 1500000 ms on the PRL, the script will abort and the next task of the batch begins?</description><pubDate>Wed, 22 Apr 2020 11:11:18 GMT</pubDate><dc:creator>SabRV</dc:creator></item><item><title>RE: Probabilistic reversal learning task in batch aborts prematurely even though script.abort(false)</title><link>https://forums.millisecond.com/Topic28829.aspx</link><description>&lt;blockquote data-id="28828" class="if-quote-wrapper" unselectable="on" data-guid="1587553625928" id="if_insertedNode_1587553625169" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28828" 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="28828" 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="28828" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/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-28828"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28817" class="if-quote-wrapper" unselectable="on" data-guid="1587553625928" id="if_insertedNode_1587546070061" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28817" 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="28817" 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="28817" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/21/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-28817"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28816" class="if-quote-wrapper" unselectable="on" data-guid="1587553625928" id="if_insertedNode_1587483174962" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28816" 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="28816" 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="28816" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/21/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-28816"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt;I have a batch including 6 files that are presented in a specific order. On 4th place the probabilistic reversal learning task (PRL) is situated, followed by 2 questionnaires. Now when testing the whole batch using monkey, the batch worked fine and ended with the 6th questionnaire. Also checking by means of CRTL+Q showed no problems.&amp;nbsp;&lt;br/&gt;When going through the whole script by myself now, after finishing the PRL, the whole batch aborted, not presenting the 5th and 5th questionnaire. I made sure to disable the script.abort command in the PRL, but have no idea now what's going on.&amp;nbsp;&lt;br/&gt;Could someone help?&lt;br/&gt;Thanks so much in advance!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sabrina&lt;a class="if-quote-goto quote-link" href="#" data-id="28816"&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;I think you missed this one:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial choice&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.feedback;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) &lt;strong&gt;script.abort()&lt;/strong&gt;;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="28817"&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;Hi Dave,&lt;br/&gt;I used this command to abort the script of the PRL after the participant spent a certain time on the task, not to abort the whole batch. Wouldnt that then be / ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) batch.abort();] ?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;Sabrina&lt;a class="if-quote-goto quote-link" href="#" data-id="28828"&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;script.abort() will terminate the whole batch.&lt;br/&gt;&lt;br/&gt;If you want it to only terminate the currently running script, it ought to be script.abort(false).</description><pubDate>Wed, 22 Apr 2020 11:08:04 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Probabilistic reversal learning task in batch aborts prematurely even though script.abort(false)</title><link>https://forums.millisecond.com/Topic28828.aspx</link><description>&lt;blockquote data-id="28817" class="if-quote-wrapper" unselectable="on" data-guid="1587546071075" contenteditable="false" id="if_insertedNode_1587546070061"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28817" 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="28817" 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="28817" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/21/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-28817"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28816" class="if-quote-wrapper" unselectable="on" data-guid="1587546071075" id="if_insertedNode_1587483174962" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28816" 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="28816" 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="28816" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/21/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-28816"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt;I have a batch including 6 files that are presented in a specific order. On 4th place the probabilistic reversal learning task (PRL) is situated, followed by 2 questionnaires. Now when testing the whole batch using monkey, the batch worked fine and ended with the 6th questionnaire. Also checking by means of CRTL+Q showed no problems.&amp;nbsp;&lt;br/&gt;When going through the whole script by myself now, after finishing the PRL, the whole batch aborted, not presenting the 5th and 5th questionnaire. I made sure to disable the script.abort command in the PRL, but have no idea now what's going on.&amp;nbsp;&lt;br/&gt;Could someone help?&lt;br/&gt;Thanks so much in advance!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sabrina&lt;a class="if-quote-goto quote-link" href="#" data-id="28816"&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;I think you missed this one:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial choice&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.feedback;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) &lt;strong&gt;script.abort()&lt;/strong&gt;;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="28817"&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;Hi Dave,&lt;br/&gt;I used this command to abort the script of the PRL after the participant spent a certain time on the task, not to abort the whole batch. Wouldnt that then be / ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) batch.abort();] ?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;Sabrina</description><pubDate>Wed, 22 Apr 2020 09:02:35 GMT</pubDate><dc:creator>SabRV</dc:creator></item><item><title>RE: Probabilistic reversal learning task in batch aborts prematurely even though script.abort(false)</title><link>https://forums.millisecond.com/Topic28827.aspx</link><description>&lt;blockquote data-id="28817" class="if-quote-wrapper" unselectable="on" data-guid="1587545684191" contenteditable="false" id="if_insertedNode_1587545683661"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28817" title=""&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="28817" title=""&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"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="28817" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/21/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-28817"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;blockquote data-id="28816" class="if-quote-wrapper" unselectable="on" data-guid="1587545684191" id="if_insertedNode_1587483174962" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28816" 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="28816" 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="28816" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/21/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-28816"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Dave, I built this one in to abort the script after a participant spend a certain time on the task. I did not mean to abort the whole batch after this time. Is that still the reason why the batch aborts? Shouldn't the command than not be batch.abort() though?&lt;br/&gt;Thanks in advance!&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;I think you missed this one:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial choice&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.feedback;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) &lt;strong&gt;script.abort()&lt;/strong&gt;;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="28817"&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>Wed, 22 Apr 2020 08:57:20 GMT</pubDate><dc:creator>SabRV</dc:creator></item><item><title>RE: Probabilistic reversal learning task in batch aborts prematurely even though script.abort(false)</title><link>https://forums.millisecond.com/Topic28817.aspx</link><description>&lt;blockquote data-id="28816" class="if-quote-wrapper" unselectable="on" data-guid="1587483175410" id="if_insertedNode_1587483174962" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28816" 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="28816" 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="28816" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - 4/21/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-28816"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt;I have a batch including 6 files that are presented in a specific order. On 4th place the probabilistic reversal learning task (PRL) is situated, followed by 2 questionnaires. Now when testing the whole batch using monkey, the batch worked fine and ended with the 6th questionnaire. Also checking by means of CRTL+Q showed no problems.&amp;nbsp;&lt;br/&gt;When going through the whole script by myself now, after finishing the PRL, the whole batch aborted, not presenting the 5th and 5th questionnaire. I made sure to disable the script.abort command in the PRL, but have no idea now what's going on.&amp;nbsp;&lt;br/&gt;Could someone help?&lt;br/&gt;Thanks so much in advance!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sabrina&lt;a class="if-quote-goto quote-link" href="#" data-id="28816"&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;I think you missed this one:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial choice&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.feedback;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [ if (script.elapsedtime &amp;gt;= 1500000) &lt;strong&gt;script.abort()&lt;/strong&gt;;]&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Tue, 21 Apr 2020 15:35:23 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>