﻿<?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  » Adding a Stop-Signal into Mental Arithmetic Task</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 30 Apr 2026 02:55:10 GMT</lastBuildDate><ttl>20</ttl><item><title>Adding a Stop-Signal into Mental Arithmetic Task</title><link>https://forums.millisecond.com/Topic22089.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;Does anyone know if its possible to change the colour of 50% of the answers displayed in Turner's mental maths task? Am hoping to use a change of colour as a stop signal. Any advice or tips would be appreciated!&lt;br/&gt;&lt;br/&gt;Thanks</description><pubDate>Mon, 24 Jul 2017 21:05:29 GMT</pubDate><dc:creator>catithomas</dc:creator></item><item><title>RE: Adding a Stop-Signal into Mental Arithmetic Task</title><link>https://forums.millisecond.com/Topic22134.aspx</link><description>&lt;div data-id="22133" class="if-quote-wrapper" unselectable="on" data-guid="1500955052968"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22133" 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="22133" 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="22133" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, July 24, 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-22133"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22132" class="if-quote-wrapper" unselectable="on" data-guid="1500955052968"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22132" 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="22132" 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="22132" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;catithomas - Monday, July 24, 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-22132"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22112" class="if-quote-wrapper" unselectable="on" data-guid="1500955052968"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22112" 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="22112" 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="22112" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, July 19, 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-22112"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22110" class="if-quote-wrapper" unselectable="on" data-guid="1500955052968"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22110" 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="22110" 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="22110" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;catithomas - Wednesday, July 19, 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-22110"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" data-id="22090" unselectable="on" data-guid="1500955052968"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" href="#" data-id="22090" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" href="#" data-id="22090" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" unselectable="on" contenteditable="false"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22090"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;Dave - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22090"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" data-id="22089" data-guid="1500955052968" unselectable="on"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" href="#" data-id="22089" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" href="#" data-id="22089" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" unselectable="on" contenteditable="false"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22089"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;catithomas - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22089"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;Does anyone know if its possible to change the colour of 50% of the answers displayed in Turner's mental maths task? Am hoping to use a change of colour as a stop signal. Any advice or tips would be appreciated!&lt;br/&gt;&lt;br/&gt;Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="22089"&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;Sure. You can change the color of the &amp;lt;text mathanswer&amp;gt; element via /ontrialbegin logic. Set up a list with the two display colors black and red&lt;br/&gt;&lt;br/&gt;&amp;lt;list answercolor&amp;gt;&lt;br/&gt;/ items = (black, orangered)&lt;br/&gt;/ poolsize = parameters.maxnr_mathproblems&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with as many items as there are math problems per its /poolsize (40 is the default), i.e. here the list will contain 20 x the color black and 20 x the color red.&lt;br/&gt;&lt;br/&gt;Then set the text.mathanswer.textcolor to a color sampled from the list /ontrialbegin:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1digit1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2digits1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22090"&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;Hi again Dave,&lt;br/&gt;&lt;br/&gt;Got the colours working now some follow up questions:&lt;br/&gt;&lt;br/&gt;1) Is it possible to randomise the colour presentation across all levels of difficulty at the moment for example all 2digit-1digit answers will be displayed in orange but is there a way to make it so 50% of all presented items regardless of the difficulty level will display in orange and be randomised?&lt;br/&gt;&lt;br/&gt;2) In the original task feedback is provided to pts (green O for correct, red X for incorrect) I would like the task to state pts should NOT respond to any answers displayed in colour (i.e. inhibit a spacebar press to 50% of the answers displayed) in doing so correct inhibition should display with a green O but at the moment it still reflects whether the actual answer was correct or not. If it's not possible to set this up what part of the script should I remove to get rid of the feedback all together?&lt;br/&gt;&lt;br/&gt;Thank you&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22110"&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;&amp;gt; 1) Is it possible to randomise the colour presentation across all levels of difficulty at the moment for example all 2digit-1digit answers will be displayed in orange &lt;br/&gt;&amp;gt; but is there a way to make it so 50% of all presented items regardless of the difficulty level will display in orange and be randomised?&lt;br/&gt;&lt;br/&gt;The solution outlined in my original response should do just that. 50% in red, regardless of level. What exactly did you implement instead and how?&lt;br/&gt;&lt;br/&gt;&amp;gt;  in doing so correct inhibition should display with a green O but at the moment it still reflects whether the actual answer was correct or not.&lt;br/&gt;&lt;br/&gt;You should modify the &amp;lt;trial&amp;gt;s' /iscorrectresponse logic accordingly. I.e., the the given trial is a "stop"-trial (response displayed in red color), no response (0) should be taken as the correct response.&lt;br/&gt;&lt;br/&gt;&amp;gt; If it's not possible to set this up what part of the script should I remove to get rid of the feedback all together?&lt;br/&gt;&lt;br/&gt;If you'd rather suppress feedback entirely, remove the /correctmessage and /erromessage attributes from the &amp;lt;trial&amp;gt; elements.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22112"&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;Thanks have sorted the colour issue.&lt;br/&gt;What exactly should I modify in that logic to say that if they respond correctly to a black answer they are given a green O and if the do not respond to a red answer they are given a green O&lt;br/&gt;/ iscorrectresponse = [(values.correctness == 1 &amp;amp;&amp;amp; trial.1digit1digit.response == parameters.correctresponsekey) ||&lt;br/&gt;(values.correctness == 2 &amp;amp;&amp;amp; trial.1digit1digit.response == 0)]&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22132"&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;First you should add a value (cf. the &amp;lt;values&amp;gt; element in the script) and associated logic that indicates whether the given trial is a "stop" trial or not. Then you would change the /iscorrectresponse logic to something along the lines of:&lt;br/&gt;&lt;br/&gt;/ iscorrectresponse = [(values.isstoptrial==false &amp;amp;&amp;amp; values.correctness == 1 &amp;amp;&amp;amp; trial.1digit1digit.response == parameters.correctresponsekey) ||&lt;br/&gt;(values.isstoptrial==false &amp;amp;&amp;amp; values.correctness == 2 &amp;amp;&amp;amp; trial.1digit1digit.response == 0) || (values.isstoptrial==true &amp;amp;&amp;amp;&amp;nbsp; trial.1digit1digit.response == 0)]&lt;a class="if-quote-goto quote-link" href="#" data-id="22133"&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;Perhaps a more complete code example is more useful: In short, I'd probably set up&amp;nbsp; a single list that encodes whether a trial is supposed to be a "stop" trial (true) or not "false".&lt;br/&gt;&lt;br/&gt;&amp;lt;list isstoptrial&amp;gt;&lt;br/&gt;/ items = (false, true)&lt;br/&gt;/ poolsize = parameters.maxnr_mathproblems&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;Then sample an item -- either true or false -- from the list at the start of each trial and store it in a global variable (a &amp;lt;values&amp;gt; entry), set the text color of the math answer accordingly:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ isstoptrial = false&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1digit1digit&amp;gt;&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.isstoptrial = list.isstoptrial.nextvalue;&lt;br/&gt;]&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.isstoptrial) text.mathanswer.textcolor = orangered else text.mathanswer.textcolor = black;&lt;br/&gt;]&lt;/strong&gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.difficulty = 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.foiladjustment = 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.1digitA;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.1digitB;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (parameters.runoperation == 1)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; values.operation = "+";&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (parameters.runoperation == 2)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; values.operation = "-";&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.operation;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.operation == "-" &amp;amp;&amp;amp; values.number1 &amp;lt; values.number2) {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; values.helper = values.number1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; values.number1 = values.number2;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; values.number2 = values.helper;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.generatemathproblem;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.correctsolution = evaluate(values.mathproblem);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.correctness = list.correctness.nextvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.correctness == 1)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; values.presentedsolution = values.correctsolution;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; expressions.generatefoilanswer;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.1digit1digit.insertstimulustime(clearscreen, parameters.mathproblemduration);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.1digit1digit.insertstimulustime(text.equal, parameters.mathproblemduration);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.1digit1digit.insertstimulustime(text.mathanswer, (parameters.mathproblemduration + parameters.equalsignduration));&lt;br/&gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;&lt;br/&gt;/ stimulusframes = [1 = mathproblem]&lt;br/&gt;/ beginresponsetime = parameters.mathproblemduration + parameters.equalsignduration&lt;br/&gt;/ response = timeout(parameters.mathanswerduration)&lt;br/&gt;/ validresponse = (parameters.correctresponsekey, 0)&lt;br/&gt;&lt;strong&gt;/ iscorrectresponse = [(values.isstoptrial==false &amp;amp;&amp;amp; values.correctness == 1 &amp;amp;&amp;amp; trial.1digit1digit.response == parameters.correctresponsekey) ||&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (values.isstoptrial==false &amp;amp;&amp;amp; values.correctness == 2 &amp;amp;&amp;amp; trial.1digit1digit.response == 0) || &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (values.isstoptrial==true &amp;amp;&amp;amp;&amp;nbsp; trial.1digit1digit.response == 0)] &lt;/strong&gt;&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.1digit1digit.resetstimulusframes();&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.1digit1digit.correct)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; values.countcorrect += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.countmathproblems += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.count_diff1 += 1;&lt;br/&gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;/ correctmessage = (correctfeedback, 500)&lt;br/&gt;/ errormessage = (incorrectfeedback, 500)&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.1digit1digit.correct)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trial.2digits1digit;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trial.1digit1digit;&lt;br/&gt;]&lt;br/&gt;/ posttrialpause = parameters.iti&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;The attached modification of the original script has this implemented for all trials and logs the stop-trial variable to the raw data file.&lt;br/&gt;</description><pubDate>Mon, 24 Jul 2017 21:05:29 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Adding a Stop-Signal into Mental Arithmetic Task</title><link>https://forums.millisecond.com/Topic22133.aspx</link><description>&lt;div data-id="22132" class="if-quote-wrapper" unselectable="on" data-guid="1500953405874"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22132" 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="22132" 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="22132" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;catithomas - Monday, July 24, 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-22132"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22112" class="if-quote-wrapper" unselectable="on" data-guid="1500953405874"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22112" 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="22112" 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="22112" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, July 19, 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-22112"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22110" class="if-quote-wrapper" unselectable="on" data-guid="1500953405874"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22110" 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="22110" 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="22110" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;catithomas - Wednesday, July 19, 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-22110"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" data-id="22090" unselectable="on" data-guid="1500953405874"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" href="#" data-id="22090" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" href="#" data-id="22090" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" unselectable="on" contenteditable="false"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22090"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;Dave - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22090"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" data-id="22089" data-guid="1500953405874" unselectable="on"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" href="#" data-id="22089" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" href="#" data-id="22089" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" unselectable="on" contenteditable="false"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22089"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;catithomas - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22089"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;Does anyone know if its possible to change the colour of 50% of the answers displayed in Turner's mental maths task? Am hoping to use a change of colour as a stop signal. Any advice or tips would be appreciated!&lt;br/&gt;&lt;br/&gt;Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="22089"&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;Sure. You can change the color of the &amp;lt;text mathanswer&amp;gt; element via /ontrialbegin logic. Set up a list with the two display colors black and red&lt;br/&gt;&lt;br/&gt;&amp;lt;list answercolor&amp;gt;&lt;br/&gt;/ items = (black, orangered)&lt;br/&gt;/ poolsize = parameters.maxnr_mathproblems&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with as many items as there are math problems per its /poolsize (40 is the default), i.e. here the list will contain 20 x the color black and 20 x the color red.&lt;br/&gt;&lt;br/&gt;Then set the text.mathanswer.textcolor to a color sampled from the list /ontrialbegin:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1digit1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2digits1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22090"&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;Hi again Dave,&lt;br/&gt;&lt;br/&gt;Got the colours working now some follow up questions:&lt;br/&gt;&lt;br/&gt;1) Is it possible to randomise the colour presentation across all levels of difficulty at the moment for example all 2digit-1digit answers will be displayed in orange but is there a way to make it so 50% of all presented items regardless of the difficulty level will display in orange and be randomised?&lt;br/&gt;&lt;br/&gt;2) In the original task feedback is provided to pts (green O for correct, red X for incorrect) I would like the task to state pts should NOT respond to any answers displayed in colour (i.e. inhibit a spacebar press to 50% of the answers displayed) in doing so correct inhibition should display with a green O but at the moment it still reflects whether the actual answer was correct or not. If it's not possible to set this up what part of the script should I remove to get rid of the feedback all together?&lt;br/&gt;&lt;br/&gt;Thank you&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22110"&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;&amp;gt; 1) Is it possible to randomise the colour presentation across all levels of difficulty at the moment for example all 2digit-1digit answers will be displayed in orange &lt;br/&gt;&amp;gt; but is there a way to make it so 50% of all presented items regardless of the difficulty level will display in orange and be randomised?&lt;br/&gt;&lt;br/&gt;The solution outlined in my original response should do just that. 50% in red, regardless of level. What exactly did you implement instead and how?&lt;br/&gt;&lt;br/&gt;&amp;gt;  in doing so correct inhibition should display with a green O but at the moment it still reflects whether the actual answer was correct or not.&lt;br/&gt;&lt;br/&gt;You should modify the &amp;lt;trial&amp;gt;s' /iscorrectresponse logic accordingly. I.e., the the given trial is a "stop"-trial (response displayed in red color), no response (0) should be taken as the correct response.&lt;br/&gt;&lt;br/&gt;&amp;gt; If it's not possible to set this up what part of the script should I remove to get rid of the feedback all together?&lt;br/&gt;&lt;br/&gt;If you'd rather suppress feedback entirely, remove the /correctmessage and /erromessage attributes from the &amp;lt;trial&amp;gt; elements.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22112"&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;Thanks have sorted the colour issue.&lt;br/&gt;What exactly should I modify in that logic to say that if they respond correctly to a black answer they are given a green O and if the do not respond to a red answer they are given a green O&lt;br/&gt;/ iscorrectresponse = [(values.correctness == 1 &amp;amp;&amp;amp; trial.1digit1digit.response == parameters.correctresponsekey) ||&lt;br/&gt;(values.correctness == 2 &amp;amp;&amp;amp; trial.1digit1digit.response == 0)]&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22132"&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;First you should add a value (cf. the &amp;lt;values&amp;gt; element in the script) and associated logic that indicates whether the given trial is a "stop" trial or not. Then you would change the /iscorrectresponse logic to something along the lines of:&lt;br/&gt;&lt;br/&gt;/ iscorrectresponse = [(values.isstoptrial==false &amp;amp;&amp;amp; values.correctness == 1 &amp;amp;&amp;amp; trial.1digit1digit.response == parameters.correctresponsekey) ||&lt;br/&gt;(values.isstoptrial==false &amp;amp;&amp;amp; values.correctness == 2 &amp;amp;&amp;amp; trial.1digit1digit.response == 0) || (values.isstoptrial==true &amp;amp;&amp;amp;&amp;nbsp; trial.1digit1digit.response == 0)]</description><pubDate>Mon, 24 Jul 2017 20:34:30 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Adding a Stop-Signal into Mental Arithmetic Task</title><link>https://forums.millisecond.com/Topic22132.aspx</link><description>&lt;div data-id="22112" class="if-quote-wrapper" unselectable="on" data-guid="1500951160814"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22112" 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="22112" 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="22112" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, July 19, 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-22112"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22110" class="if-quote-wrapper" unselectable="on" data-guid="1500951160814"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22110" 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="22110" 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="22110" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;catithomas - Wednesday, July 19, 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-22110"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" data-id="22090" unselectable="on" data-guid="1500951160814"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" href="#" data-id="22090" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" href="#" data-id="22090" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" unselectable="on" contenteditable="false"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22090"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;Dave - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22090"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" data-id="22089" data-guid="1500951160814" unselectable="on"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" href="#" data-id="22089" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" href="#" data-id="22089" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" unselectable="on" contenteditable="false"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22089"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;catithomas - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22089"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;Does anyone know if its possible to change the colour of 50% of the answers displayed in Turner's mental maths task? Am hoping to use a change of colour as a stop signal. Any advice or tips would be appreciated!&lt;br/&gt;&lt;br/&gt;Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="22089"&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;Sure. You can change the color of the &amp;lt;text mathanswer&amp;gt; element via /ontrialbegin logic. Set up a list with the two display colors black and red&lt;br/&gt;&lt;br/&gt;&amp;lt;list answercolor&amp;gt;&lt;br/&gt;/ items = (black, orangered)&lt;br/&gt;/ poolsize = parameters.maxnr_mathproblems&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with as many items as there are math problems per its /poolsize (40 is the default), i.e. here the list will contain 20 x the color black and 20 x the color red.&lt;br/&gt;&lt;br/&gt;Then set the text.mathanswer.textcolor to a color sampled from the list /ontrialbegin:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1digit1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2digits1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22090"&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;Hi again Dave,&lt;br/&gt;&lt;br/&gt;Got the colours working now some follow up questions:&lt;br/&gt;&lt;br/&gt;1) Is it possible to randomise the colour presentation across all levels of difficulty at the moment for example all 2digit-1digit answers will be displayed in orange but is there a way to make it so 50% of all presented items regardless of the difficulty level will display in orange and be randomised?&lt;br/&gt;&lt;br/&gt;2) In the original task feedback is provided to pts (green O for correct, red X for incorrect) I would like the task to state pts should NOT respond to any answers displayed in colour (i.e. inhibit a spacebar press to 50% of the answers displayed) in doing so correct inhibition should display with a green O but at the moment it still reflects whether the actual answer was correct or not. If it's not possible to set this up what part of the script should I remove to get rid of the feedback all together?&lt;br/&gt;&lt;br/&gt;Thank you&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22110"&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;&amp;gt; 1) Is it possible to randomise the colour presentation across all levels of difficulty at the moment for example all 2digit-1digit answers will be displayed in orange &lt;br/&gt;&amp;gt; but is there a way to make it so 50% of all presented items regardless of the difficulty level will display in orange and be randomised?&lt;br/&gt;&lt;br/&gt;The solution outlined in my original response should do just that. 50% in red, regardless of level. What exactly did you implement instead and how?&lt;br/&gt;&lt;br/&gt;&amp;gt;  in doing so correct inhibition should display with a green O but at the moment it still reflects whether the actual answer was correct or not.&lt;br/&gt;&lt;br/&gt;You should modify the &amp;lt;trial&amp;gt;s' /iscorrectresponse logic accordingly. I.e., the the given trial is a "stop"-trial (response displayed in red color), no response (0) should be taken as the correct response.&lt;br/&gt;&lt;br/&gt;&amp;gt; If it's not possible to set this up what part of the script should I remove to get rid of the feedback all together?&lt;br/&gt;&lt;br/&gt;If you'd rather suppress feedback entirely, remove the /correctmessage and /erromessage attributes from the &amp;lt;trial&amp;gt; elements.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22112"&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;Thanks have sorted the colour issue.&lt;br/&gt;What exactly should I modify in that logic to say that if they respond correctly to a black answer they are given a green O and if the do not respond to a red answer they are given a green O&lt;br/&gt;/ iscorrectresponse = [(values.correctness == 1 &amp;amp;&amp;amp; trial.1digit1digit.response == parameters.correctresponsekey) ||&lt;br/&gt;(values.correctness == 2 &amp;amp;&amp;amp; trial.1digit1digit.response == 0)]&lt;br/&gt;</description><pubDate>Mon, 24 Jul 2017 19:55:17 GMT</pubDate><dc:creator>catithomas</dc:creator></item><item><title>RE: Adding a Stop-Signal into Mental Arithmetic Task</title><link>https://forums.millisecond.com/Topic22112.aspx</link><description>&lt;div data-id="22110" class="if-quote-wrapper" unselectable="on" data-guid="1500511449449"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22110" 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="22110" 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="22110" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;catithomas - Wednesday, July 19, 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-22110"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" data-id="22090" unselectable="on" data-guid="1500511449449"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" href="#" data-id="22090" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" href="#" data-id="22090" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" unselectable="on" contenteditable="false"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22090"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;Dave - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22090"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" data-id="22089" data-guid="1500511449449" unselectable="on"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" href="#" data-id="22089" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" href="#" data-id="22089" unselectable="on" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" unselectable="on" contenteditable="false"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22089"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;catithomas - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22089"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;Does anyone know if its possible to change the colour of 50% of the answers displayed in Turner's mental maths task? Am hoping to use a change of colour as a stop signal. Any advice or tips would be appreciated!&lt;br/&gt;&lt;br/&gt;Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="22089"&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;Sure. You can change the color of the &amp;lt;text mathanswer&amp;gt; element via /ontrialbegin logic. Set up a list with the two display colors black and red&lt;br/&gt;&lt;br/&gt;&amp;lt;list answercolor&amp;gt;&lt;br/&gt;/ items = (black, orangered)&lt;br/&gt;/ poolsize = parameters.maxnr_mathproblems&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with as many items as there are math problems per its /poolsize (40 is the default), i.e. here the list will contain 20 x the color black and 20 x the color red.&lt;br/&gt;&lt;br/&gt;Then set the text.mathanswer.textcolor to a color sampled from the list /ontrialbegin:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1digit1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2digits1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22090"&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;Hi again Dave,&lt;br/&gt;&lt;br/&gt;Got the colours working now some follow up questions:&lt;br/&gt;&lt;br/&gt;1) Is it possible to randomise the colour presentation across all levels of difficulty at the moment for example all 2digit-1digit answers will be displayed in orange but is there a way to make it so 50% of all presented items regardless of the difficulty level will display in orange and be randomised?&lt;br/&gt;&lt;br/&gt;2) In the original task feedback is provided to pts (green O for correct, red X for incorrect) I would like the task to state pts should NOT respond to any answers displayed in colour (i.e. inhibit a spacebar press to 50% of the answers displayed) in doing so correct inhibition should display with a green O but at the moment it still reflects whether the actual answer was correct or not. If it's not possible to set this up what part of the script should I remove to get rid of the feedback all together?&lt;br/&gt;&lt;br/&gt;Thank you&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22110"&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;&amp;gt; 1) Is it possible to randomise the colour presentation across all levels of difficulty at the moment for example all 2digit-1digit answers will be displayed in orange &lt;br/&gt;&amp;gt; but is there a way to make it so 50% of all presented items regardless of the difficulty level will display in orange and be randomised?&lt;br/&gt;&lt;br/&gt;The solution outlined in my original response should do just that. 50% in red, regardless of level. What exactly did you implement instead and how?&lt;br/&gt;&lt;br/&gt;&amp;gt;  in doing so correct inhibition should display with a green O but at the moment it still reflects whether the actual answer was correct or not.&lt;br/&gt;&lt;br/&gt;You should modify the &amp;lt;trial&amp;gt;s' /iscorrectresponse logic accordingly. I.e., the the given trial is a "stop"-trial (response displayed in red color), no response (0) should be taken as the correct response.&lt;br/&gt;&lt;br/&gt;&amp;gt; If it's not possible to set this up what part of the script should I remove to get rid of the feedback all together?&lt;br/&gt;&lt;br/&gt;If you'd rather suppress feedback entirely, remove the /correctmessage and /erromessage attributes from the &amp;lt;trial&amp;gt; elements.&lt;br/&gt;</description><pubDate>Wed, 19 Jul 2017 17:50:52 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title /><link>https://forums.millisecond.com/Topic22110.aspx</link><description>&lt;div class="if-quote-wrapper" data-id="22090" unselectable="on"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" contenteditable="false" href="#" data-id="22090" unselectable="on"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" contenteditable="false" href="#" data-id="22090" unselectable="on"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" contenteditable="false" unselectable="on"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22090"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;Dave - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22090"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div class="if-quote-wrapper" data-id="22089" data-guid="1499997217897" unselectable="on"&gt;&lt;a title="Move Cursor Below" class="quote-para" style="display: none;" contenteditable="false" href="#" data-id="22089" unselectable="on"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a title="Delete Quote" class="quote-delete" style="display: none;" contenteditable="false" href="#" data-id="22089" unselectable="on"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span class="quote-markup" unselectable="on"&gt;[quote]&lt;/span&gt;&lt;div class="if-quote-header" contenteditable="false" unselectable="on"&gt;&lt;div class="if-quote-toggle-wrapper" unselectable="on"&gt;&lt;a title=" " class="if-quote-toggle quote-link" href="#" data-id="22089"&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="quote-markup" unselectable="on"&gt;[b]&lt;/span&gt;catithomas - Thursday, July 13, 2017&lt;span class="quote-markup" unselectable="on"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22089"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;Does anyone know if its possible to change the colour of 50% of the answers displayed in Turner's mental maths task? Am hoping to use a change of colour as a stop signal. Any advice or tips would be appreciated!&lt;br/&gt;&lt;br/&gt;Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="22089"&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;Sure. You can change the color of the &amp;lt;text mathanswer&amp;gt; element via /ontrialbegin logic. Set up a list with the two display colors black and red&lt;br/&gt;&lt;br/&gt;&amp;lt;list answercolor&amp;gt;&lt;br/&gt;/ items = (black, orangered)&lt;br/&gt;/ poolsize = parameters.maxnr_mathproblems&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with as many items as there are math problems per its /poolsize (40 is the default), i.e. here the list will contain 20 x the color black and 20 x the color red.&lt;br/&gt;&lt;br/&gt;Then set the text.mathanswer.textcolor to a color sampled from the list /ontrialbegin:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1digit1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2digits1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22090"&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;Hi again Dave,&lt;br/&gt;&lt;br/&gt;Got the colours working now some follow up questions:&lt;br/&gt;&lt;br/&gt;1) Is it possible to randomise the colour presentation across all levels of difficulty at the moment for example all 2digit-1digit answers will be displayed in orange but is there a way to make it so 50% of all presented items regardless of the difficulty level will display in orange and be randomised?&lt;br/&gt;&lt;br/&gt;2) In the original task feedback is provided to pts (green O for correct, red X for incorrect) I would like the task to state pts should NOT respond to any answers displayed in colour (i.e. inhibit a spacebar press to 50% of the answers displayed) in doing so correct inhibition should display with a green O but at the moment it still reflects whether the actual answer was correct or not. If it's not possible to set this up what part of the script should I remove to get rid of the feedback all together?&lt;br/&gt;&lt;br/&gt;Thank you&lt;br/&gt;</description><pubDate>Wed, 19 Jul 2017 16:22:12 GMT</pubDate><dc:creator>catithomas</dc:creator></item><item><title>RE: Adding a Stop-Signal into Mental Arithmetic Task</title><link>https://forums.millisecond.com/Topic22091.aspx</link><description>&lt;div data-id="22090" class="if-quote-wrapper" unselectable="on" data-guid="1500002971363"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22090" 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="22090" 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="22090" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, July 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-22090"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22089" class="if-quote-wrapper" unselectable="on" data-guid="1500002971363"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22089" 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="22089" 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="22089" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;catithomas - Thursday, July 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-22089"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;Does anyone know if its possible to change the colour of 50% of the answers displayed in Turner's mental maths task? Am hoping to use a change of colour as a stop signal. Any advice or tips would be appreciated!&lt;br/&gt;&lt;br/&gt;Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="22089"&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;Sure. You can change the color of the &amp;lt;text mathanswer&amp;gt; element via /ontrialbegin logic. Set up a list with the two display colors black and red&lt;br/&gt;&lt;br/&gt;&amp;lt;list answercolor&amp;gt;&lt;br/&gt;/ items = (black, orangered)&lt;br/&gt;/ poolsize = parameters.maxnr_mathproblems&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with as many items as there are math problems per its /poolsize (40 is the default), i.e. here the list will contain 20 x the color black and 20 x the color red.&lt;br/&gt;&lt;br/&gt;Then set the text.mathanswer.textcolor to a color sampled from the list /ontrialbegin:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1digit1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2digits1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22090"&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;Thanks Dave! First time using this program so I'll give that a go and see how it works out - thanks for the quick reply.&lt;br/&gt;&lt;br/&gt;Cati :)</description><pubDate>Thu, 13 Jul 2017 20:30:29 GMT</pubDate><dc:creator>catithomas</dc:creator></item><item><title>RE: Adding a Stop-Signal into Mental Arithmetic Task</title><link>https://forums.millisecond.com/Topic22090.aspx</link><description>&lt;div data-id="22089" class="if-quote-wrapper" unselectable="on" data-guid="1499997217897"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22089" 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="22089" 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="22089" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;catithomas - Thursday, July 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-22089"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;Does anyone know if its possible to change the colour of 50% of the answers displayed in Turner's mental maths task? Am hoping to use a change of colour as a stop signal. Any advice or tips would be appreciated!&lt;br/&gt;&lt;br/&gt;Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="22089"&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;Sure. You can change the color of the &amp;lt;text mathanswer&amp;gt; element via /ontrialbegin logic. Set up a list with the two display colors black and red&lt;br/&gt;&lt;br/&gt;&amp;lt;list answercolor&amp;gt;&lt;br/&gt;/ items = (black, orangered)&lt;br/&gt;/ poolsize = parameters.maxnr_mathproblems&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;with as many items as there are math problems per its /poolsize (40 is the default), i.e. here the list will contain 20 x the color black and 20 x the color red.&lt;br/&gt;&lt;br/&gt;Then set the text.mathanswer.textcolor to a color sampled from the list /ontrialbegin:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 1digit1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial 2digits1digit&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.mathanswer.textcolor = list.answercolor.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;</description><pubDate>Thu, 13 Jul 2017 19:01:56 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>