﻿<?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 4  » using images</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 28 Apr 2026 09:57:49 GMT</lastBuildDate><ttl>20</ttl><item><title>using images</title><link>https://forums.millisecond.com/Topic20702.aspx</link><description>How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;</description><pubDate>Mon, 20 Feb 2017 08:24:56 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20805.aspx</link><description>&lt;div data-id="20804" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20804" 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="20804" 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="20804" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20804"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20795" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20795" 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="20795" 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="20795" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 20, 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-20795"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20792" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20792" 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="20792" 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="20792" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20792"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20789" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20789" 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="20789" 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="20789" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20789"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487607871835"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I do that?&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20789"&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;Here is the entire syntax for the operation span task.....&lt;br/&gt;&amp;lt;usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;Automated Operation Span Task (AOSPAN)&lt;br/&gt;SCRIPT INFO&lt;br/&gt;&lt;br/&gt;Main Inquisit programming: David Nitz (&lt;a href="mailto:dave@millisecond.com"&gt;dave@millisecond.com&lt;/a&gt;) for Millisecond Software, LLC.&lt;br/&gt;Additional Inquisit programming: Jerry Grenard (&lt;a href="mailto:grenard@ucla.edu"&gt;grenard@ucla.edu&lt;/a&gt;), Sean Draine (&lt;a href="mailto:seandr@millisecond.com"&gt;seandr@millisecond.com&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;last updated: 01-20-2016 by K.Borchert (&lt;a href="mailto:katjab@millisecond.com"&gt;katjab@millisecond.com&lt;/a&gt;) for Millisecond Software LLC&lt;br/&gt;&lt;br/&gt;Script Copyright © 01-20-2016 Millisecond Software&lt;br/&gt;Task Copyright © 2005 by Dr. Randall Engle (&lt;a href="http://psychology.gatech.edu/renglelab/)"&gt;&lt;a href="http://psychology.gatech.edu/renglelab/)"&gt;http://psychology.gatech.edu/renglelab/)&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;BACKGROUND INFO&lt;br/&gt;&lt;br/&gt;*Purpose*&lt;br/&gt;This script implements the Automated Operation Span Task (AOSPAN).&lt;br/&gt;&lt;br/&gt;Working Memory Span Tasks Reference:&lt;br/&gt;CONWAY, A.R.A., KANE, M.J.,BUNTING, M.F., D. ZACH HAMBRICK, D.Z., WILHELM, O., &amp;amp; ENGLE, R.W. (2005).&lt;br/&gt;Working memory span tasks: A methodological review and user’s guide. Psychonomic Bulletin &amp;amp; Review&lt;br/&gt;2005, 12 (5), 769-786.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  *Task*&lt;br/&gt;Participants are presented a visual sequences of letters ranging from 3-7 letters (default) that need to be recalled at the end.&lt;br/&gt;Each letter in the sequence in preceded by a math problem ("(8*2) - 8 = ?") followed by a proposed solution ("e.g. 9") &lt;br/&gt;and participants have to decide whether the proposed solution is correct or not. &lt;br/&gt;Letter recall is tested by asking participants to selecte letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;DATA FILE INFORMATION: &lt;br/&gt;The default data stored in the data files are:&lt;br/&gt;&lt;br/&gt;(1) Raw data file: 'AOSPAN_raw.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;build:Inquisit build&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;date, time, subject, group:date and time script was run with the current subject/groupnumber &lt;br/&gt;blockcode, blocknum:the name and number of the current block&lt;br/&gt;trialcode, trialnum: the name and number of the currently recorded trial&lt;br/&gt;(Note: not all trials that are run might record data; by default data is collected unless /recorddata = false is set for a particular trial/block) &lt;br/&gt;stimulusitem:the presented stimuli in order of trial presentation&lt;br/&gt;response:the participant's response&lt;br/&gt;correct:the correctness of the response (1 = correct; 0 = incorrect)&lt;br/&gt;latency: the response latency (in ms)&lt;br/&gt;/currentsetsize: the number of letters to recall for the current problem&lt;br/&gt;text.letters.currentitem: the currently presented letter&lt;br/&gt;/mathproblemcount: counts the number of math problems in a given block&lt;br/&gt;text.MathProblem.currentitem: the currently presented math problem&lt;br/&gt;/mathtrueanswer:the correct math answer&lt;br/&gt;/mathanswer:the math response given&lt;br/&gt;/mathcorrect:1 = correct math response; 0 = incorrect math response&lt;br/&gt;/matheaccuracy: percentage of correctly solved math problems within the current block&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/recalledletters: the number of letters recalled of the current problem&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/totalrecalledsets: the number of correctly recalled sets&lt;br/&gt;&lt;br/&gt;(2) Summary data file: 'AOSPAN_summary*.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;script.startdate:date script was run&lt;br/&gt;script.starttime:time script was started&lt;br/&gt;script.subjectid:subject id number&lt;br/&gt;script.groupid:group id number&lt;br/&gt;script.elapsedtime:time it took to run script (in ms)&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;/completed:0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;EXPERIMENTAL SET-UP&lt;br/&gt;1 Practice Session (default):&lt;br/&gt;a) Practice of recalling sequences of letters of set sizes 2-3 in ascending order (4 trials)&lt;br/&gt;b) Practice of math task (15 trials)&lt;br/&gt;c) Combined practice of recalling sequence of letters (set size 2 only) and math problem: each letter is &lt;br/&gt;preceded by a math problem (3 trials)&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Test Session (default):&lt;br/&gt;15 Trials (15 = 3 repetitions of 5 set sizes; order of set sizes is randomly determined): &lt;br/&gt;Recalling sequences of letters (set size 3-7): each letter is preceded by a math problem;&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Scoring:&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;STIMULI:&lt;br/&gt;Letters: T, L, Q, N, F, H, Y, S, P, K, R, J&lt;br/&gt;Math Problems (test): created on runtime; only math problems with a *true* result &amp;gt;= 0 are allowed in the task&lt;br/&gt;&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;see section Editable Instructions&lt;br/&gt;&lt;br/&gt;EDITABLE CODE:&lt;br/&gt;check below for (relatively) easily editable parameters, stimuli, instructions etc. &lt;br/&gt;Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.&lt;br/&gt;&lt;br/&gt;&amp;lt;/usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE STIMULI: change editable stimuli here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathProblem&amp;gt;&lt;br/&gt;/ 01 = "(1*2) + 1 = ?"&lt;br/&gt;/ 02 = "(1/1) - 1 = ?"&lt;br/&gt;/ 03 = "(7*3) - 3 = ?"&lt;br/&gt;/ 04 = "(4*3) + 4 = ?"&lt;br/&gt;/ 05 = "(3/3) + 2 = ?"&lt;br/&gt;/ 06 = "(2*6) - 4 = ?"&lt;br/&gt;/ 07 = "(8*9) - 8 = ?"&lt;br/&gt;/ 08 = "(4*5) - 5 = ?"&lt;br/&gt;/ 09 = "(4*2) + 6 = ?"&lt;br/&gt;/ 10 = "(4/4) + 7 = ?"&lt;br/&gt;/ 11 = "(8*2) - 8 = ?"&lt;br/&gt;/ 12 = "(2*9) - 9 = ?"&lt;br/&gt;/ 13 = "(8/2) + 9 = ?"&lt;br/&gt;/ 14 = "(3*8) - 1 = ?"&lt;br/&gt;/ 15 = "(6/3) + 1 = ?"&lt;br/&gt;/ 16 = "(9/3) - 2 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathAnswer&amp;gt;&lt;br/&gt;/ 01 = "3"&lt;br/&gt;/ 02 = "2"&lt;br/&gt;/ 03 = "18"&lt;br/&gt;/ 04 = "16"&lt;br/&gt;/ 05 = "1"&lt;br/&gt;/ 06 = "6"&lt;br/&gt;/ 07 = "64"&lt;br/&gt;/ 08 = "11"&lt;br/&gt;/ 09 = "14"&lt;br/&gt;/ 10 = "12"&lt;br/&gt;/ 11 = "2"&lt;br/&gt;/ 12 = "9"&lt;br/&gt;/ 13 = "7"&lt;br/&gt;/ 14 = "23"&lt;br/&gt;/ 15 = "3"&lt;br/&gt;/ 16 = "7"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE INSTRUCTIONS: change instructions here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;/ 1 = "In this experiment you will try to memorize letters you see on the screen &lt;br/&gt;while you also solve simple math problems.~r &lt;br/&gt;In the next few minutes, you will have some practice to get you familiar with how the experiment works.~r&lt;br/&gt;We will begin by practicing the letter part of the experiment.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin."&lt;br/&gt;/ 2 = "For this practice set, letters will appear on the screen one at a time.&lt;br/&gt;Try to remember each letter in the order presented.~r&lt;br/&gt;After a few sets, a recall screen will appear. Select the letters in the same order that you saw them. &lt;br/&gt;To do this, &amp;lt;%expressions.buttoninstruct2%&amp;gt;.~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 3 = "When you have selected all the letters, and they are in the correct order at the bottom of your screen,&lt;br/&gt;hit the EXIT box at the bottom right of the screen.~r&lt;br/&gt;If you make a mistake, hit the CLEAR box to start over.~r&lt;br/&gt;If you forget one of the letters, &amp;lt;%expressions.buttoninstruct3%&amp;gt; the BLANK box to mark the spot&lt;br/&gt;for the missing letter.~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to start the letter practice."&lt;br/&gt;/ 4 = "Now you will practice doing the math part of the experiment.~r~r&lt;br/&gt;A math problem will appear on the screen, like this:~r&lt;br/&gt;(2 * 1) + 1 = ?~r&lt;br/&gt;Once the equation is presented, you should compute the correct answer as quickly as you can. &lt;br/&gt;When you know the correct answer, you will &amp;lt;%expressions.buttoninstruct1%&amp;gt;.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 5 = "You will see a number displayed on the next screen,&lt;br/&gt;along with a box marked TRUE and a box marked FALSE.~r&lt;br/&gt;If the number on the screen is the correct answer to the math problem,&lt;br/&gt;&amp;lt;%expressions.buttoninstruct3%&amp;gt; on the TRUE box with the mouse.&lt;br/&gt;If the number is not the correct answer, &amp;lt;%expressions.buttoninstruct3%&amp;gt; on the FALSE box.~r&lt;br/&gt;After you &amp;lt;%expressions.buttoninstruct3%&amp;gt; on one of the boxes,&lt;br/&gt;the computer will tell you if you made the right choice.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 6 = "It is VERY important that you get the math problems correct.&lt;br/&gt;It is also important that you try and solve the problem as quickly as you can.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 7 = "Now you will practice doing both parts of the experiment at the same time.~r~r&lt;br/&gt;You will be given one of the math problems and make your decision about the answer. &lt;br/&gt;Then, a letter will appear on the screen. Try and remember the letter.~r&lt;br/&gt;The computer will automatically move you onto the next letter part, if you do not answer fast enough.&lt;br/&gt;Skipping the True or False part will count that problem as a math error.~r&lt;br/&gt;Therefore it is VERY important to solve the problems&lt;br/&gt;as quickly and as accurately as possible.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 8 = "At the end of each set of letters and math problems, a recall screen will appear.&lt;br/&gt;Use the mouse to select the letters in the same order that you saw them. &lt;br/&gt;It is important to work QUICKLY and ACCURATELY on the math.&lt;br/&gt;After the recall screen, you will be given feedback about your performance&lt;br/&gt;regarding both the number of letters recalled and the percent correct on&lt;br/&gt;the math problems.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 9 = "During the feedback, you will see a number in red in the top right of the screen.&lt;br/&gt;This indicates your percent correct for the math problems&lt;br/&gt;for the entire experiment.~r&lt;br/&gt;It is VERY important for you to keep this at least at 85%.&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 10 = "That is the end of the practice.~r~r&lt;br/&gt;The real trials will look like the practice trials you just completed.&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;If not, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin the experiment."&lt;br/&gt;/ 11 = "Thank you for your participation."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scorereport&amp;gt;&lt;br/&gt;/ items = ("~tResults for Subject #&amp;lt;%script.subjectid%&amp;gt;~r~r&lt;br/&gt;OSPAN Absolute Score:~t&amp;lt;%values.ospan%&amp;gt;&lt;br/&gt;OSPAN Total Correct:~t&amp;lt;%values.totalcorrectletters%&amp;gt;~r~r&lt;br/&gt;Math Total Errors:~t&amp;lt;%values.mathtotalerrors%&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;%values.mathspeederrors%&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;%values.mathaccerrors%&amp;gt;~r~r")&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (52%, 50%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;****************************************************************************************************&lt;br/&gt;general instruction expressions: adjust the instruction text depending on device used to run script&lt;br/&gt;****************************************************************************************************&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/buttoninstruct1 = if (computer.touch) {"tap the screen";} else {"click the mouse button";}&lt;br/&gt;/buttoninstruct2 = if (computer.touch) {"tap the letters you want to select";} else {"use the mouse to select each letter";}&lt;br/&gt;/buttoninstruct3 = if (computer.touch) {"tap";} else {"click";}&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE LISTS: change editable lists here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Adjustable Task Lists:&lt;br/&gt;The following list elements contain the set sizes used for the different study phases. &lt;br/&gt;The set sizes determine how many letters the participant has to remember&lt;br/&gt;as well as the number of math problems she/he has to solve intermittently.&lt;br/&gt;The task can be extended by modifying these values. The script can handle a maximum &lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,3,3)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;list PracBothSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,2)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestBothSetSize&amp;gt;&lt;br/&gt;/ items = (3,3,3,4,4,4,5,5,5,6,6,6,7,7,7)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;!!!REMAINING CODE: Customize after careful consideration only!!!&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEFAULTS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;script requires Inquisit 5.0.0.0 or higher&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ canvassize = (100%,100%)&lt;br/&gt;/ canvasaspectratio = (4,3)&lt;br/&gt;/ screencolor = white&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ txbgcolor = transparent&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ minimumversion = "5.0.0.0"&lt;br/&gt;/ halign = center&lt;br/&gt;/ valign = center&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DATA&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: data file explanations under User Manual Information at the top&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;raw data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, date, time, subject, group, blockcode, blocknum, trialcode, trialnum, latency, response, correct,&lt;br/&gt;values.currentsetsize, text.letters.currentitem, values.mathproblemcount, &lt;br/&gt;text.MathProblem.currentitem, values.mathtrueanswer, values.mathanswer, &lt;br/&gt;values.mathcorrect, values.mathaccuracy, values.mathtotalerrors, values.mathaccerrors, &lt;br/&gt;values.mathspeederrors, values.mathtimeout, values.recalledletters, &lt;br/&gt;values.totalcorrectletters, values.totalrecalledsets, values.ospan)&lt;br/&gt;/ labels = true&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;summary data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/ columns = (script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime, computer.platform, values.completed, &lt;br/&gt;values.ospan, &lt;br/&gt;values.totalcorrectletters, values.mathtotalerrors, values.mathspeederrors, &lt;br/&gt;values.mathaccerrors)&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/summarydata&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;VALUES: automatically updated&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/completed:0 = script was not completed; 1 = script was completed (all conditions run)&lt;br/&gt;&lt;br/&gt;&amp;lt;values AOSPAN&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;/ stopblock=0&lt;br/&gt;/ learninginterval=1000&lt;br/&gt;/ currentsetsize=0&lt;br/&gt;/ lettercount=0&lt;br/&gt;/ correctletters=0&lt;br/&gt;/ totalcorrectletters=0&lt;br/&gt;/ ospan=0&lt;br/&gt;/ totalrecalledsets=0&lt;br/&gt;/ recalledletters=""&lt;br/&gt;/ recallcount=0&lt;br/&gt;/ recalldelay=0&lt;br/&gt;/ mathaccuracy=0&lt;br/&gt;/ mathaccerrors=0&lt;br/&gt;/ mathcurrenterrors=0&lt;br/&gt;/ mathtotalerrors=0&lt;br/&gt;/ mathspeederrors=0&lt;br/&gt;/ mathtimeout=5000&lt;br/&gt;/ mathproblemcount=0&lt;br/&gt;/ matherrorswitch=1&lt;br/&gt;/ mathcorrect=""&lt;br/&gt;/ tmp_mathopt01=""&lt;br/&gt;/ tmp_mathopt02=0&lt;br/&gt;/ tmp_mathsign=""&lt;br/&gt;/ tmp_mathopt02sign=""&lt;br/&gt;/ mathtrueanswer=0&lt;br/&gt;/ tmp_mathrand=0&lt;br/&gt;/ mathanswer=0&lt;br/&gt;/ tmp_initmath01=0&lt;br/&gt;/ tmp_initmath02=0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPRESSIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Letter String Generation is handled by two list elements:&lt;br/&gt;PracLetterList and TestLetterList.&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth) use random selection &lt;br/&gt;without replacement for each sequence.&lt;br/&gt;Switching between lists according to current study phase&lt;br/&gt;is handled dynamically by 'expressions.selectionmode'.&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions AOSPAN&amp;gt;&lt;br/&gt;/ selectionmode = if(script.currentblock=="PracLetter")PracLetterList else TestLetterList&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracLetter&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracMath&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracBoth&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrTestBoth&amp;gt;&lt;br/&gt;/ trials = [1=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrFinal&amp;gt;&lt;br/&gt;/ trials = [1=instructions; 2=score_report]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instructions&amp;gt;&lt;br/&gt;/ pretrialpause = 250&lt;br/&gt;/ posttrialpause = 250&lt;br/&gt;/ stimulustimes = [1=instructions]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ responsetime = 2000&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text instructions&amp;gt;&lt;br/&gt;/ items = instructions&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (90%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The Letter Sequence Generation is handled dynamically by 'expressions.selectionmode':&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and Letter-Math Test (Block TestBoth)&lt;br/&gt;use random selection without replacement for each sequence.&lt;br/&gt;&lt;br/&gt;&amp;lt;text Letters&amp;gt;&lt;br/&gt;/ items = ("F","P","Q","J","H","K","T","S","N","R","Y","L")&lt;br/&gt;/ fontstyle = ("Arial", 5.0%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select =  expressions.selectionmode&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Empty Item Elements for Storing Presented and Recalled Letter Sequences&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PresentedLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item RecalledLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Screen Layout Elements for the Letter Recall Grid&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text F&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text H&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text J&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text K&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text L&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text N&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text P&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Q&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text R&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text S&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text T&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Y&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text _&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text exit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickF&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickH&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickJ&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickK&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickL&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickN&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickP&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickQ&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickR&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickS&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickT&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickY&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text click_&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickclear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickexit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recalledletters&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.recalledletters%&amp;gt;")&lt;br/&gt;/ position = (50%, 80%)&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recallprompt&amp;gt;&lt;br/&gt;/ items = ("Select the letters in the order presented. Use the blank button to fill in forgotten items.")&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;/ size = (95%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text LetterFeedback&amp;gt;&lt;br/&gt;/ items = ("You recalled &amp;lt;%values.correctletters%&amp;gt; out of &amp;lt;%values.lettercount%&amp;gt; letters correctly.")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Practice Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems are hardcoded only for the Math Practice Phase (Block PracMath).&lt;br/&gt;For all other Study Phases (Block PracBoth &amp;amp; Block TestBoth) &lt;br/&gt;the Math Problems are generated dynamically.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;text PracMathProblem&amp;gt;&lt;br/&gt;/ items = PracMathProblem&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select = PracMathList&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathAnswer&amp;gt;&lt;br/&gt;/ items = PracMathAnswer&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = false&lt;br/&gt;/ select = current(PracMathProblem)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathFeedback&amp;gt;&lt;br/&gt;/ items = ("You were correct on &amp;lt;%trial.prac_solve_math.totalcorrectcount%&amp;gt; of &amp;lt;%list.PracMathList.itemcount%&amp;gt; math trials.&lt;br/&gt;That is &amp;lt;%trial.prac_solve_math.totalpercentcorrect%&amp;gt; percent correct.~r~r~r&lt;br/&gt;Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (65%, 50%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Text and Layout Items used for the Math Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblemDisplay&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathProblem.currentitem%&amp;gt; = ?")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblem&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.tmp_mathopt01%&amp;gt; &amp;lt;%values.tmp_mathsign%&amp;gt; &amp;lt;%values.tmp_mathopt02%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathCorrect&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathCorrect.selectedvalue%&amp;gt;")&lt;br/&gt;/ select =  noreplace&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 60%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathAnswer&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathanswer%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathScore&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathaccuracy%&amp;gt;%")&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ position = (85%, 15%)&lt;br/&gt;/ size = (10%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathFeedback&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"You made &amp;lt;%values.mathcurrenterrors%&amp;gt; math error(s) on this set of trials.",&lt;br/&gt;"You have made a total of 3 or more math errors during this set of trials. Please do your best on the math.")&lt;br/&gt;/ select =  values.matherrorswitch&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (80%, 30%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TRUE&amp;gt;&lt;br/&gt;/ items = ("TRUE")&lt;br/&gt;/ position = (31%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FALSE&amp;gt;&lt;br/&gt;/ items = ("FALSE")&lt;br/&gt;/ position = (69%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TestMathPrompt&amp;gt;&lt;br/&gt;/ items = ("Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathPrompt&amp;gt;&lt;br/&gt;/ items = ("When you have solved the math problem,~nclick the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text correcttext&amp;gt;&lt;br/&gt;/ items = ("Correct")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text incorrecttext&amp;gt;&lt;br/&gt;/ items = ("Incorrect")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: General Purpose Screen Layout Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;shape GrayFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = silver&lt;br/&gt;/ size = (78.3%, 78%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape BlackFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape WhiteScreen&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;LISTS:&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Item Selection&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;Beware: Item Selection differs between the task's Practice and Test Phases!&lt;br/&gt;Generally, the single-task practice phases (Blocks PracLetter &amp;amp; PracMath) rely on &lt;br/&gt;sequential item selection. The phases involving both tasks &lt;br/&gt;(Blocks PracBoth &amp;amp; TestBoth) use random selection without replacement.&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;/ selectionmode =  sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Math&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "FALSE", "TRUE", "TRUE", "FALSE", "FALSE", "TRUE", "FALSE", &lt;br/&gt;"TRUE", "FALSE", "FALSE", "TRUE", "FALSE", "TRUE", "TRUE", "FALSE")&lt;br/&gt;/ selectionmode =  text.PracMathProblem.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Test Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Generating the math problem has 4 steps&lt;br/&gt;1. Selection of the first operation, MathOpt01: "(9/3)"&lt;br/&gt;2. Selection of the second operation, MathOpt012: "- 2"&lt;br/&gt;3. Selection of whether the answer presented to subjects should be true or false, MathCorrect: "TRUE" or "FALSE"&lt;br/&gt;4. A random number added to the correct answer to make it false, MathRand: "3"&lt;br/&gt;&lt;br/&gt;Additional Math Operations &lt;br/&gt;(add to List 'MathOpt01'):&lt;br/&gt;"(4*4)", "(2*8)", "(9*2)", "(6*3)", "(3*6)", "(2*9)", "(5*4)", "(4*5)", &lt;br/&gt;"(7*3)", "(3*7)", "(8*3)", "(6*4)", "(4*6)", "(3*8)", "(5*5)", "(9*3)",&lt;br/&gt;"(3*9)", "(7*4)", "(4*7)", "(6*5)", "(5*6)", "(8*4)", "(4*8)", "(7*5)", &lt;br/&gt;"(5*7)", "(9*4)", "(6*6)", "(4*9)", "(8*5)", "(5*8)", "(7*6)", "(6*7)",&lt;br/&gt;"(9*5)", "(5*9)", "(8*6)", "(6*8)", "(7*7)", "(9*6)", "(6*9)", "(8*7)",&lt;br/&gt;"(7*8)", "(9*7)", "(7*9)", "(8*8)", "(9*8)", "(8*9)", "(9*9)"&lt;br/&gt;&lt;br/&gt;Difficulties for Additional Operations &lt;br/&gt;(add to List 'MathDifficulty'):&lt;br/&gt;"2", "2", "2", "2", "2", "2", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "4", "4", "4", "4", &lt;br/&gt;"4", "4", "4", "4", "4", "4", "4", "4",&lt;br/&gt;"4", "4", "4", "4", "4", "4", "4"&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt01&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"(1/1)", "(2/1)", "(2/2)", "(3/1)", "(3/3)", "(4/1)", "(4/2)", "(4/4)", &lt;br/&gt;"(5/1)", "(5/5)", "(6/1)", "(6/2)", "(6/3)", "(6/6)", "(7/1)", "(7/7)",&lt;br/&gt;"(8/1)", "(8/2)", "(8/4)", "(8/8)", "(9/1)", "(9/3)", "(9/9)", "(1*2)", &lt;br/&gt;"(1*3)", "(2*2)", "(1*4)", "(1*5)", "(3*2)", "(2*3)", "(1*6)", "(1*7)", &lt;br/&gt;"(4*2)", "(2*4)", "(1*8)", "(3*3)", "(1*9)", "(5*2)", "(2*5)", "(6*2)", &lt;br/&gt;"(4*3)", "(3*4)", "(2*6)", "(7*2)", "(2*7)", "(5*3)", "(3*5)", "(8*2)")&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathDifficulty&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "2", "2", "2", &lt;br/&gt;"2", "2", "2", "2", "2", "2", "2", "2")&lt;br/&gt;/ selectionmode =  list.MathOpt01.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt02&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathSign&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"+", "+", "+", "+", "+", "+", "+", "+", "+", &lt;br/&gt;"-", "-", "-", "-", "-", "-", "-", "-", "-")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Alternate MathCorrect List Logic&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;/ selectionmode =  list.MathOpt02)&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathRand&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Initialization Trial for the Different Study Phases&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitSetSize&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.currentsetsize=0; values.lettercount=0; values.correctletters=0; &lt;br/&gt;values.recallcount=0; values.recalledletters=""]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracLetter")&lt;br/&gt;{values.currentsetsize=list.PracLetterSetSize.nextvalue}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracBoth")&lt;br/&gt;{values.currentsetsize=list.PracBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="TestBoth")&lt;br/&gt;{values.currentsetsize=list.TestBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialend = [clear(item.PresentedLetters); clear(item.RecalledLetters)]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial show_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.lettercount+=1]&lt;br/&gt;/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, currentsetsize]&lt;br/&gt;/ trialduration = values.learninginterval&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial recall_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.recallcount+=1]&lt;br/&gt;/ ontrialbegin = [if(values.recallcount==1)values.recalldelay=500 else values.recalldelay=0]&lt;br/&gt;/ pretrialpause = values.recalldelay&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit, recalledletters, recallprompt, letterstrings]&lt;br/&gt;/ validresponse = (F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit)&lt;br/&gt;/ monkeyresponse = ("F", "H", "J", "K", "exit")&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response!="exit" &amp;amp;&amp;amp; trial.recall_letter.response!="clear")&lt;br/&gt;{item.RecalledLetters.item=trial.recall_letter.response; values.recalledletters=concat(values.recalledletters, trial.recall_letter.response)}]&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response=="clear")&lt;br/&gt;{clear(item.RecalledLetters); values.recalledletters=""}]&lt;br/&gt;/ responsemessage = (F, clickF, 150)&lt;br/&gt;/ responsemessage = (H, clickH, 150)&lt;br/&gt;/ responsemessage = (J, clickJ, 150)&lt;br/&gt;/ responsemessage = (K, clickK, 150)&lt;br/&gt;/ responsemessage = (L, clickL, 150)&lt;br/&gt;/ responsemessage = (N, clickN, 150)&lt;br/&gt;/ responsemessage = (P, clickP, 150)&lt;br/&gt;/ responsemessage = (Q, clickQ, 150)&lt;br/&gt;/ responsemessage = (R, clickR, 150)&lt;br/&gt;/ responsemessage = (S, clickS, 150)&lt;br/&gt;/ responsemessage = (T, clickT, 150)&lt;br/&gt;/ responsemessage = (Y, clickY, 150)&lt;br/&gt;/ responsemessage = (clear, clickclear, 150)&lt;br/&gt;/ responsemessage = (exit, clickexit, 150)&lt;br/&gt;/ responsemessage = (_, click_, 150)&lt;br/&gt;/ branch = [if(trial.recall_letter.response=="exit")trial.letter_feedback else trial.recall_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Recall Feedback:&lt;br/&gt;In this trial, the presented letter sequenceis compared &lt;br/&gt;to the letter string the participant has entered. &lt;br/&gt;Feedback is given accordingly. &lt;br/&gt;This trial also handles reporting of math performance&lt;br/&gt;for Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth).&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial letter_feedback&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ ontrialbegin = [values.correctletters=0]&lt;br/&gt;/ ontrialbegin = [if(values.mathcurrenterrors&amp;gt;=3)values.matherrorswitch=2 else values.matherrorswitch=1]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if(item.RecalledLetters.item.1 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.1==item.RecalledLetters.item.1)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.2 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.2==item.RecalledLetters.item.2)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.3 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.3==item.RecalledLetters.item.3)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.4 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.4==item.RecalledLetters.item.4)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.5 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.5==item.RecalledLetters.item.5)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.6 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.6==item.RecalledLetters.item.6)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.7 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.7==item.RecalledLetters.item.7)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.8 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.8==item.RecalledLetters.item.8)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.9 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.9==item.RecalledLetters.item.9)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.10 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.10==item.RecalledLetters.item.10)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.11 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.11==item.RecalledLetters.item.11)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.12 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.12==item.RecalledLetters.item.12)values.correctletters+=1]&lt;br/&gt;/ ontrialbegin = [if(values.correctletters==values.currentsetsize)&lt;br/&gt;{values.ospan=values.ospan+values.correctletters; values.totalrecalledsets+=1}]&lt;br/&gt;/ ontrialbegin = [values.totalcorrectletters=values.totalcorrectletters+values.correctletters]&lt;br/&gt;/ ontrialend = [values.mathcurrenterrors=0]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracLetter" &amp;amp;&amp;amp; list.PracLetterSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracBoth" &amp;amp;&amp;amp; list.PracBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="TestBoth" &amp;amp;&amp;amp; list.TestBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, LetterFeedback, MathFeedback, MathScore, scoredebug]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.InitSetSize]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_show_math&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathProblem, PracMathPrompt]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ branch = [trial.prac_solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathAnswer, TRUE, FALSE]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (list.PracMathCorrect.nextvalue)&lt;br/&gt;/ responsemessage = (anyresponse, PracMathAnswer, 800)&lt;br/&gt;/ correctmessage = true(correcttext, 800)&lt;br/&gt;/ errormessage = true(incorrecttext, 800)&lt;br/&gt;/ branch = [if(trial.prac_show_math.trialcount &amp;gt;= list.PracMathList.itemcount)&lt;br/&gt;trial.prac_math_feedback else trial.prac_show_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_math_feedback&amp;gt;&lt;br/&gt;/ ontrialend = [values.stopblock=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, PracMathFeedback]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter-Math Practice &amp;amp; Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Setting up Math Problems:&lt;br/&gt;&lt;br/&gt;'InitMathProblem01' and 'InitMathProblem02'&lt;br/&gt;are used to set up and check the randomly &lt;br/&gt;generated math problems used for&lt;br/&gt;Letter-Math Practice (Block 'PracBoth') and &lt;br/&gt;Letter-Math Test (Block 'TestBoth'). &lt;br/&gt;Only math problems with a *true* result &lt;br/&gt;greater than or equal to zero are allowed in the task. &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The calculations contained in trial 'InitMathProblem01' &lt;br/&gt;ensure that the participant is given a math problem &lt;br/&gt;with a *true* result greater than or equal to zero.&lt;br/&gt;The adjustments may cause MathOpt02 to become zero.&lt;br/&gt;This *does* happen in the original version of the task programmed&lt;br/&gt;in E-Prime.To avoid MathOpt02=0 exchange&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]' with&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0 || values.tmp_mathopt02==0)trial.InitMathProblem01]'&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem01&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01==1)&lt;br/&gt;{values.tmp_mathopt01=list.MathOpt01.nextvalue;&lt;br/&gt;values.tmp_mathsign=list.MathSign.nextvalue;&lt;br/&gt;values.tmp_mathopt02=list.MathOpt02.nextvalue;&lt;br/&gt;values.mathcorrect=list.MathCorrect.nextvalue;&lt;br/&gt;values.tmp_mathopt02sign=concat(values.tmp_mathsign, values.tmp_mathopt02);&lt;br/&gt;values.tmp_mathopt02sign=evaluate(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1)&lt;br/&gt;{values.tmp_mathopt02sign+=3;&lt;br/&gt;values.tmp_mathopt02=abs(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1 &amp;amp;&amp;amp; values.tmp_mathopt02sign&amp;gt;0)&lt;br/&gt;values.tmp_mathsign="+"]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem);&lt;br/&gt;values.mathtrueanswer=values.mathanswer]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="TRUE")trial.show_math]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="FALSE")trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;For trials that should present a *false* math answer,&lt;br/&gt;a randomly drawn integer ranging from -9 to +9 &lt;br/&gt;is added to the math problem's *true* result. &lt;br/&gt;The calculations contained in 'InitMathProblem02' ensure that &lt;br/&gt;this *false* answer is also greater than or equal to zero.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem02&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath02+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02==1)values.tmp_mathrand=list.MathRand.nextvalue]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02&amp;gt;1)values.tmp_mathrand+=2]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem)+values.tmp_mathrand]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathanswer!=values.mathtrueanswer)trial.show_math else trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;The following trials handle presentation of math problems&lt;br/&gt;and scoring of participants' responses.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;trial show_math&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01=0; values.tmp_initmath02=0;&lt;br/&gt;values.mathproblemcount+=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathProblemDisplay, TestMathPrompt, mathtimeout]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ timeout = values.mathtimeout+500&lt;br/&gt;/ ontrialend = [if(trial.show_math.response!="lbuttondown")&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathspeederrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ branch = [if(trial.show_math.response!="lbuttondown")trial.show_letter else trial.solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [if(trial.solve_math.correct==0)&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathaccerrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathAnswer, TRUE, FALSE, mathdebug]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (values.mathcorrect)&lt;br/&gt;/ branch = [trial.show_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;SCORING&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan"&amp;nbsp;scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial score_report&amp;gt;&lt;br/&gt;/ stimulusframes = [1=scorereport]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracLetter&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=white; text.MathScore.textcolor=white; values.stopblock=0]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracMath&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [values.mathaccuracy=0]&lt;br/&gt;/ onblockend = [values.mathtimeout=(2.5*trial.prac_show_math.totalsdlatency)+trial.prac_show_math.totalmeanlatency]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=prac_show_math]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block TestBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPERIMENT &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;expt AOSPAN&amp;gt;&lt;br/&gt;/ onexptbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ blocks = [1=InstrPracLetter; 2=PracLetter; 3=InstrPracMath; 4=PracMath; &lt;br/&gt;5=InstrPracBoth; 6=PracBoth; 7=InstrTestBoth; 8=TestBoth; 9=InstrFinal]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEBUG: On-Screen Debugging Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;These items are invisible by default. &lt;br/&gt;Enter 'debug' as subject id to enable them.&lt;br/&gt;&lt;br/&gt;&amp;lt;text currentsetsize&amp;gt;&lt;br/&gt;/ items = ("Setsize: &amp;lt;%values.currentsetsize%&amp;gt; / Lettercount: &amp;lt;%values.lettercount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text letterstrings&amp;gt;&lt;br/&gt;/ items = ("~tPresented Letters:~t&amp;lt;%item.PresentedLetters.item.1%&amp;gt;&amp;lt;%item.PresentedLetters.item.2%&amp;gt;&amp;lt;%item.PresentedLetters.item.3%&amp;gt;&amp;lt;%item.PresentedLetters.item.4%&amp;gt;&amp;lt;%item.PresentedLetters.item.5%&amp;gt;&amp;lt;%item.PresentedLetters.item.6%&amp;gt;&amp;lt;%item.PresentedLetters.item.7%&amp;gt;&amp;lt;%item.PresentedLetters.item.8%&amp;gt;&amp;lt;%item.PresentedLetters.item.9%&amp;gt;&amp;lt;%item.PresentedLetters.item.10%&amp;gt;&amp;lt;%item.PresentedLetters.item.11%&amp;gt;&amp;lt;%item.PresentedLetters.item.12%&amp;gt;&lt;br/&gt;~tRecalled Letters:~t&amp;lt;%item.RecalledLetters.item.1%&amp;gt;&amp;lt;%item.RecalledLetters.item.2%&amp;gt;&amp;lt;%item.RecalledLetters.item.3%&amp;gt;&amp;lt;%item.RecalledLetters.item.4%&amp;gt;&amp;lt;%item.RecalledLetters.item.5%&amp;gt;&amp;lt;%item.RecalledLetters.item.6%&amp;gt;&amp;lt;%item.RecalledLetters.item.7%&amp;gt;&amp;lt;%item.RecalledLetters.item.8%&amp;gt;&amp;lt;%item.RecalledLetters.item.9%&amp;gt;&amp;lt;%item.RecalledLetters.item.10%&amp;gt;&amp;lt;%item.RecalledLetters.item.11%&amp;gt;&amp;lt;%item.RecalledLetters.item.12%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (55%, 5%)&lt;br/&gt;/ position = (50%, 87%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathdebug&amp;gt;&lt;br/&gt;/ items = ("~tMath Problem:~t~t&amp;lt;% text.MathProblem.currentitem %&amp;gt;~r&lt;br/&gt;~tTrue Answer:~t~t&amp;lt;% values.mathtrueanswer %&amp;gt;~r&lt;br/&gt;~tPresented Answer:~t&amp;lt;% values.mathcorrect %&amp;gt;~r~r")&lt;br/&gt;/ size = (50%, 7%)&lt;br/&gt;/ halign = center&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ position = (45%, 70%)&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathtimeout&amp;gt;&lt;br/&gt;/ items = ("Timeout = &amp;lt;%values.mathtimeout%&amp;gt; ms~r&lt;br/&gt;Math Problem # &amp;lt;%values.mathproblemcount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 20%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scoredebug&amp;gt;&lt;br/&gt;/ items = ("OSPAN Score:~t~t&amp;lt;% values.ospan %&amp;gt;&lt;br/&gt;Total Number Correct:~t&amp;lt;% values.totalcorrectletters %&amp;gt;~r~r&lt;br/&gt;Math Errors (Total):~t&amp;lt;% values.mathtotalerrors %&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;% values.mathspeederrors %&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;% values.mathaccerrors %&amp;gt;~r~r")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 75%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;monkey AOSPAN&amp;gt;&lt;br/&gt;/ latencydistribution = normal(800, 200)&lt;br/&gt;/ percentcorrect = 100&lt;br/&gt;&amp;lt;/monkey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;End of File&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20792"&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; If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I &lt;br/&gt;&amp;gt; do that?&amp;nbsp;                			    							    &lt;br/&gt;&lt;br/&gt;Then you need to split things in several &amp;lt;trial&amp;gt;s: One that presents the equation and requires a mouse-click, followed by one that presents the response options and collects the color-response.&lt;br/&gt;&lt;br/&gt;I have no idea what the OSPAN code has to do with any of this.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20795"&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;Can you show me what you mean by having separate trials?&amp;nbsp;&lt;br/&gt;My ultimate goal is to adapt the instructions from OSPAN to use for a control condition (the equations with different colors). Then I need to use the same practice trials from the OSPAN for that task. Here is all I have so far....&lt;br/&gt;&lt;br/&gt;&lt;title&gt;&lt;/title&gt;&lt;p class="p1"&gt;&amp;lt;defaults&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ inputdevice = mouse&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/defaults&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;block myblock&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/block&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;trial black&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;/p&gt;&lt;p class="p1"&gt;/ stimulustimes = [1=equation; 5000=blank, question, black, green, blue, red]&lt;/p&gt;&lt;p class="p1"&gt;/ validresponse = (black, green, blue, red)&lt;/p&gt;&lt;p class="p1"&gt;/ correctresponse = (black)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;trial green&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;/p&gt;&lt;p class="p1"&gt;/ stimulustimes = [1=equation; 5000=blank, question, black, green, blue, red]&lt;/p&gt;&lt;p class="p1"&gt;/ validresponse = (black, green, blue, red)&lt;/p&gt;&lt;p class="p1"&gt;/ correctresponse = (green)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;trial blue&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;/p&gt;&lt;p class="p1"&gt;/ stimulustimes = [1=equation; 5000=blank, question, black, green, blue, red]&lt;/p&gt;&lt;p class="p1"&gt;/ validresponse = (black, green, blue, red)&lt;/p&gt;&lt;p class="p1"&gt;/ correctresponse = (blue)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;trial red&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;/p&gt;&lt;p class="p1"&gt;/ stimulustimes = [1=equation; 5000=blank, question, black, green, blue, red]&lt;/p&gt;&lt;p class="p1"&gt;/ validresponse = (black, green, blue, red)&lt;/p&gt;&lt;p class="p1"&gt;/ correctresponse = (red)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text equation&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = equations&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;item equations&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ 01 = "(1*2) + 1 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 02 = "(1/1) - 1 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 03 = "(7*3) - 3 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 04 = "(4*3) + 4 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 05 = "(3/3) + 2 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 06 = "(2*6) - 4 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 07 = "(8*9) - 8 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 08 = "(4*5) - 5 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 09 = "(4*2) + 6 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 10 = "(4/4) + 7 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 11 = "(8*2) - 8 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 12 = "(2*9) - 9 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 13 = "(8/2) + 9 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 14 = "(3*8) - 1 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 15 = "(6/3) + 1 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 16 = "(9/3) - 2 = ?"&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/item&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;shape blank&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ shape = rectangle&lt;/p&gt;&lt;p class="p1"&gt;/ color = white&lt;/p&gt;&lt;p class="p1"&gt;/ size = (100%, 100%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/shape&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text question&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("What color was the equation?")&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text black&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("BLACK")&lt;/p&gt;&lt;p class="p1"&gt;/ txcolor = black&lt;/p&gt;&lt;p class="p1"&gt;/ position = (20%, 75%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text green&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("GREEN")&lt;/p&gt;&lt;p class="p1"&gt;/ txcolor = green&lt;/p&gt;&lt;p class="p1"&gt;/ position = (40%, 75%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text blue&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("BLUE")&lt;/p&gt;&lt;p class="p1"&gt;/ txcolor = blue&lt;/p&gt;&lt;p class="p1"&gt;/ position = (60%, 75%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text red&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("RED")&lt;/p&gt;&lt;p class="p1"&gt;/ txcolor = red&lt;/p&gt;&lt;p class="p1"&gt;/ position = (80%, 75%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20804"&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;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [0=equation]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.black_resp&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black_resp&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [0=equation]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.green_resp&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green_resp&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [0=question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [0=equation]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.blue_resp&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue_resp&amp;gt;&lt;br/&gt;/ stimulustimes = [0=question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [0=equation]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.red_resp&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red_resp&amp;gt;&lt;br/&gt;/ stimulustimes = [0=question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 01 = "(1*2) + 1 = ?"&lt;br/&gt;/ 02 = "(1/1) - 1 = ?"&lt;br/&gt;/ 03 = "(7*3) - 3 = ?"&lt;br/&gt;/ 04 = "(4*3) + 4 = ?"&lt;br/&gt;/ 05 = "(3/3) + 2 = ?"&lt;br/&gt;/ 06 = "(2*6) - 4 = ?"&lt;br/&gt;/ 07 = "(8*9) - 8 = ?"&lt;br/&gt;/ 08 = "(4*5) - 5 = ?"&lt;br/&gt;/ 09 = "(4*2) + 6 = ?"&lt;br/&gt;/ 10 = "(4/4) + 7 = ?"&lt;br/&gt;/ 11 = "(8*2) - 8 = ?"&lt;br/&gt;/ 12 = "(2*9) - 9 = ?"&lt;br/&gt;/ 13 = "(8/2) + 9 = ?"&lt;br/&gt;/ 14 = "(3*8) - 1 = ?"&lt;br/&gt;/ 15 = "(6/3) + 1 = ?"&lt;br/&gt;/ 16 = "(9/3) - 2 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 20 Feb 2017 08:24:56 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20804.aspx</link><description>&lt;div data-id="20795" class="if-quote-wrapper" unselectable="on" data-guid="1487606703083"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20795" 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="20795" 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="20795" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 20, 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-20795"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20792" class="if-quote-wrapper" unselectable="on" data-guid="1487606703083"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20792" 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="20792" 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="20792" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20792"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20789" class="if-quote-wrapper" unselectable="on" data-guid="1487606703083"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20789" 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="20789" 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="20789" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20789"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487606703083"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487606703083"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487606703083"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487606703083"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487606703083"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487606703083"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I do that?&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20789"&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;Here is the entire syntax for the operation span task.....&lt;br/&gt;&amp;lt;usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;Automated Operation Span Task (AOSPAN)&lt;br/&gt;SCRIPT INFO&lt;br/&gt;&lt;br/&gt;Main Inquisit programming: David Nitz (&lt;a href="mailto:dave@millisecond.com"&gt;dave@millisecond.com&lt;/a&gt;) for Millisecond Software, LLC.&lt;br/&gt;Additional Inquisit programming: Jerry Grenard (&lt;a href="mailto:grenard@ucla.edu"&gt;grenard@ucla.edu&lt;/a&gt;), Sean Draine (&lt;a href="mailto:seandr@millisecond.com"&gt;seandr@millisecond.com&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;last updated: 01-20-2016 by K.Borchert (&lt;a href="mailto:katjab@millisecond.com"&gt;katjab@millisecond.com&lt;/a&gt;) for Millisecond Software LLC&lt;br/&gt;&lt;br/&gt;Script Copyright © 01-20-2016 Millisecond Software&lt;br/&gt;Task Copyright © 2005 by Dr. Randall Engle (&lt;a href="http://psychology.gatech.edu/renglelab/)"&gt;&lt;a href="http://psychology.gatech.edu/renglelab/)"&gt;http://psychology.gatech.edu/renglelab/)&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;BACKGROUND INFO&lt;br/&gt;&lt;br/&gt;*Purpose*&lt;br/&gt;This script implements the Automated Operation Span Task (AOSPAN).&lt;br/&gt;&lt;br/&gt;Working Memory Span Tasks Reference:&lt;br/&gt;CONWAY, A.R.A., KANE, M.J.,BUNTING, M.F., D. ZACH HAMBRICK, D.Z., WILHELM, O., &amp;amp; ENGLE, R.W. (2005).&lt;br/&gt;Working memory span tasks: A methodological review and user’s guide. Psychonomic Bulletin &amp;amp; Review&lt;br/&gt;2005, 12 (5), 769-786.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  *Task*&lt;br/&gt;Participants are presented a visual sequences of letters ranging from 3-7 letters (default) that need to be recalled at the end.&lt;br/&gt;Each letter in the sequence in preceded by a math problem ("(8*2) - 8 = ?") followed by a proposed solution ("e.g. 9") &lt;br/&gt;and participants have to decide whether the proposed solution is correct or not. &lt;br/&gt;Letter recall is tested by asking participants to selecte letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;DATA FILE INFORMATION: &lt;br/&gt;The default data stored in the data files are:&lt;br/&gt;&lt;br/&gt;(1) Raw data file: 'AOSPAN_raw.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;build:Inquisit build&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;date, time, subject, group:date and time script was run with the current subject/groupnumber &lt;br/&gt;blockcode, blocknum:the name and number of the current block&lt;br/&gt;trialcode, trialnum: the name and number of the currently recorded trial&lt;br/&gt;(Note: not all trials that are run might record data; by default data is collected unless /recorddata = false is set for a particular trial/block) &lt;br/&gt;stimulusitem:the presented stimuli in order of trial presentation&lt;br/&gt;response:the participant's response&lt;br/&gt;correct:the correctness of the response (1 = correct; 0 = incorrect)&lt;br/&gt;latency: the response latency (in ms)&lt;br/&gt;/currentsetsize: the number of letters to recall for the current problem&lt;br/&gt;text.letters.currentitem: the currently presented letter&lt;br/&gt;/mathproblemcount: counts the number of math problems in a given block&lt;br/&gt;text.MathProblem.currentitem: the currently presented math problem&lt;br/&gt;/mathtrueanswer:the correct math answer&lt;br/&gt;/mathanswer:the math response given&lt;br/&gt;/mathcorrect:1 = correct math response; 0 = incorrect math response&lt;br/&gt;/matheaccuracy: percentage of correctly solved math problems within the current block&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/recalledletters: the number of letters recalled of the current problem&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/totalrecalledsets: the number of correctly recalled sets&lt;br/&gt;&lt;br/&gt;(2) Summary data file: 'AOSPAN_summary*.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;script.startdate:date script was run&lt;br/&gt;script.starttime:time script was started&lt;br/&gt;script.subjectid:subject id number&lt;br/&gt;script.groupid:group id number&lt;br/&gt;script.elapsedtime:time it took to run script (in ms)&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;/completed:0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;EXPERIMENTAL SET-UP&lt;br/&gt;1 Practice Session (default):&lt;br/&gt;a) Practice of recalling sequences of letters of set sizes 2-3 in ascending order (4 trials)&lt;br/&gt;b) Practice of math task (15 trials)&lt;br/&gt;c) Combined practice of recalling sequence of letters (set size 2 only) and math problem: each letter is &lt;br/&gt;preceded by a math problem (3 trials)&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Test Session (default):&lt;br/&gt;15 Trials (15 = 3 repetitions of 5 set sizes; order of set sizes is randomly determined): &lt;br/&gt;Recalling sequences of letters (set size 3-7): each letter is preceded by a math problem;&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Scoring:&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;STIMULI:&lt;br/&gt;Letters: T, L, Q, N, F, H, Y, S, P, K, R, J&lt;br/&gt;Math Problems (test): created on runtime; only math problems with a *true* result &amp;gt;= 0 are allowed in the task&lt;br/&gt;&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;see section Editable Instructions&lt;br/&gt;&lt;br/&gt;EDITABLE CODE:&lt;br/&gt;check below for (relatively) easily editable parameters, stimuli, instructions etc. &lt;br/&gt;Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.&lt;br/&gt;&lt;br/&gt;&amp;lt;/usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE STIMULI: change editable stimuli here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathProblem&amp;gt;&lt;br/&gt;/ 01 = "(1*2) + 1 = ?"&lt;br/&gt;/ 02 = "(1/1) - 1 = ?"&lt;br/&gt;/ 03 = "(7*3) - 3 = ?"&lt;br/&gt;/ 04 = "(4*3) + 4 = ?"&lt;br/&gt;/ 05 = "(3/3) + 2 = ?"&lt;br/&gt;/ 06 = "(2*6) - 4 = ?"&lt;br/&gt;/ 07 = "(8*9) - 8 = ?"&lt;br/&gt;/ 08 = "(4*5) - 5 = ?"&lt;br/&gt;/ 09 = "(4*2) + 6 = ?"&lt;br/&gt;/ 10 = "(4/4) + 7 = ?"&lt;br/&gt;/ 11 = "(8*2) - 8 = ?"&lt;br/&gt;/ 12 = "(2*9) - 9 = ?"&lt;br/&gt;/ 13 = "(8/2) + 9 = ?"&lt;br/&gt;/ 14 = "(3*8) - 1 = ?"&lt;br/&gt;/ 15 = "(6/3) + 1 = ?"&lt;br/&gt;/ 16 = "(9/3) - 2 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathAnswer&amp;gt;&lt;br/&gt;/ 01 = "3"&lt;br/&gt;/ 02 = "2"&lt;br/&gt;/ 03 = "18"&lt;br/&gt;/ 04 = "16"&lt;br/&gt;/ 05 = "1"&lt;br/&gt;/ 06 = "6"&lt;br/&gt;/ 07 = "64"&lt;br/&gt;/ 08 = "11"&lt;br/&gt;/ 09 = "14"&lt;br/&gt;/ 10 = "12"&lt;br/&gt;/ 11 = "2"&lt;br/&gt;/ 12 = "9"&lt;br/&gt;/ 13 = "7"&lt;br/&gt;/ 14 = "23"&lt;br/&gt;/ 15 = "3"&lt;br/&gt;/ 16 = "7"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE INSTRUCTIONS: change instructions here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;/ 1 = "In this experiment you will try to memorize letters you see on the screen &lt;br/&gt;while you also solve simple math problems.~r &lt;br/&gt;In the next few minutes, you will have some practice to get you familiar with how the experiment works.~r&lt;br/&gt;We will begin by practicing the letter part of the experiment.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin."&lt;br/&gt;/ 2 = "For this practice set, letters will appear on the screen one at a time.&lt;br/&gt;Try to remember each letter in the order presented.~r&lt;br/&gt;After a few sets, a recall screen will appear. Select the letters in the same order that you saw them. &lt;br/&gt;To do this, &amp;lt;%expressions.buttoninstruct2%&amp;gt;.~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 3 = "When you have selected all the letters, and they are in the correct order at the bottom of your screen,&lt;br/&gt;hit the EXIT box at the bottom right of the screen.~r&lt;br/&gt;If you make a mistake, hit the CLEAR box to start over.~r&lt;br/&gt;If you forget one of the letters, &amp;lt;%expressions.buttoninstruct3%&amp;gt; the BLANK box to mark the spot&lt;br/&gt;for the missing letter.~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to start the letter practice."&lt;br/&gt;/ 4 = "Now you will practice doing the math part of the experiment.~r~r&lt;br/&gt;A math problem will appear on the screen, like this:~r&lt;br/&gt;(2 * 1) + 1 = ?~r&lt;br/&gt;Once the equation is presented, you should compute the correct answer as quickly as you can. &lt;br/&gt;When you know the correct answer, you will &amp;lt;%expressions.buttoninstruct1%&amp;gt;.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 5 = "You will see a number displayed on the next screen,&lt;br/&gt;along with a box marked TRUE and a box marked FALSE.~r&lt;br/&gt;If the number on the screen is the correct answer to the math problem,&lt;br/&gt;&amp;lt;%expressions.buttoninstruct3%&amp;gt; on the TRUE box with the mouse.&lt;br/&gt;If the number is not the correct answer, &amp;lt;%expressions.buttoninstruct3%&amp;gt; on the FALSE box.~r&lt;br/&gt;After you &amp;lt;%expressions.buttoninstruct3%&amp;gt; on one of the boxes,&lt;br/&gt;the computer will tell you if you made the right choice.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 6 = "It is VERY important that you get the math problems correct.&lt;br/&gt;It is also important that you try and solve the problem as quickly as you can.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 7 = "Now you will practice doing both parts of the experiment at the same time.~r~r&lt;br/&gt;You will be given one of the math problems and make your decision about the answer. &lt;br/&gt;Then, a letter will appear on the screen. Try and remember the letter.~r&lt;br/&gt;The computer will automatically move you onto the next letter part, if you do not answer fast enough.&lt;br/&gt;Skipping the True or False part will count that problem as a math error.~r&lt;br/&gt;Therefore it is VERY important to solve the problems&lt;br/&gt;as quickly and as accurately as possible.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 8 = "At the end of each set of letters and math problems, a recall screen will appear.&lt;br/&gt;Use the mouse to select the letters in the same order that you saw them. &lt;br/&gt;It is important to work QUICKLY and ACCURATELY on the math.&lt;br/&gt;After the recall screen, you will be given feedback about your performance&lt;br/&gt;regarding both the number of letters recalled and the percent correct on&lt;br/&gt;the math problems.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 9 = "During the feedback, you will see a number in red in the top right of the screen.&lt;br/&gt;This indicates your percent correct for the math problems&lt;br/&gt;for the entire experiment.~r&lt;br/&gt;It is VERY important for you to keep this at least at 85%.&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 10 = "That is the end of the practice.~r~r&lt;br/&gt;The real trials will look like the practice trials you just completed.&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;If not, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin the experiment."&lt;br/&gt;/ 11 = "Thank you for your participation."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scorereport&amp;gt;&lt;br/&gt;/ items = ("~tResults for Subject #&amp;lt;%script.subjectid%&amp;gt;~r~r&lt;br/&gt;OSPAN Absolute Score:~t&amp;lt;%values.ospan%&amp;gt;&lt;br/&gt;OSPAN Total Correct:~t&amp;lt;%values.totalcorrectletters%&amp;gt;~r~r&lt;br/&gt;Math Total Errors:~t&amp;lt;%values.mathtotalerrors%&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;%values.mathspeederrors%&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;%values.mathaccerrors%&amp;gt;~r~r")&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (52%, 50%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;****************************************************************************************************&lt;br/&gt;general instruction expressions: adjust the instruction text depending on device used to run script&lt;br/&gt;****************************************************************************************************&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/buttoninstruct1 = if (computer.touch) {"tap the screen";} else {"click the mouse button";}&lt;br/&gt;/buttoninstruct2 = if (computer.touch) {"tap the letters you want to select";} else {"use the mouse to select each letter";}&lt;br/&gt;/buttoninstruct3 = if (computer.touch) {"tap";} else {"click";}&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE LISTS: change editable lists here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Adjustable Task Lists:&lt;br/&gt;The following list elements contain the set sizes used for the different study phases. &lt;br/&gt;The set sizes determine how many letters the participant has to remember&lt;br/&gt;as well as the number of math problems she/he has to solve intermittently.&lt;br/&gt;The task can be extended by modifying these values. The script can handle a maximum &lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,3,3)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;list PracBothSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,2)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestBothSetSize&amp;gt;&lt;br/&gt;/ items = (3,3,3,4,4,4,5,5,5,6,6,6,7,7,7)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;!!!REMAINING CODE: Customize after careful consideration only!!!&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEFAULTS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;script requires Inquisit 5.0.0.0 or higher&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ canvassize = (100%,100%)&lt;br/&gt;/ canvasaspectratio = (4,3)&lt;br/&gt;/ screencolor = white&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ txbgcolor = transparent&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ minimumversion = "5.0.0.0"&lt;br/&gt;/ halign = center&lt;br/&gt;/ valign = center&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DATA&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: data file explanations under User Manual Information at the top&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;raw data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, date, time, subject, group, blockcode, blocknum, trialcode, trialnum, latency, response, correct,&lt;br/&gt;values.currentsetsize, text.letters.currentitem, values.mathproblemcount, &lt;br/&gt;text.MathProblem.currentitem, values.mathtrueanswer, values.mathanswer, &lt;br/&gt;values.mathcorrect, values.mathaccuracy, values.mathtotalerrors, values.mathaccerrors, &lt;br/&gt;values.mathspeederrors, values.mathtimeout, values.recalledletters, &lt;br/&gt;values.totalcorrectletters, values.totalrecalledsets, values.ospan)&lt;br/&gt;/ labels = true&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;summary data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/ columns = (script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime, computer.platform, values.completed, &lt;br/&gt;values.ospan, &lt;br/&gt;values.totalcorrectletters, values.mathtotalerrors, values.mathspeederrors, &lt;br/&gt;values.mathaccerrors)&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/summarydata&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;VALUES: automatically updated&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/completed:0 = script was not completed; 1 = script was completed (all conditions run)&lt;br/&gt;&lt;br/&gt;&amp;lt;values AOSPAN&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;/ stopblock=0&lt;br/&gt;/ learninginterval=1000&lt;br/&gt;/ currentsetsize=0&lt;br/&gt;/ lettercount=0&lt;br/&gt;/ correctletters=0&lt;br/&gt;/ totalcorrectletters=0&lt;br/&gt;/ ospan=0&lt;br/&gt;/ totalrecalledsets=0&lt;br/&gt;/ recalledletters=""&lt;br/&gt;/ recallcount=0&lt;br/&gt;/ recalldelay=0&lt;br/&gt;/ mathaccuracy=0&lt;br/&gt;/ mathaccerrors=0&lt;br/&gt;/ mathcurrenterrors=0&lt;br/&gt;/ mathtotalerrors=0&lt;br/&gt;/ mathspeederrors=0&lt;br/&gt;/ mathtimeout=5000&lt;br/&gt;/ mathproblemcount=0&lt;br/&gt;/ matherrorswitch=1&lt;br/&gt;/ mathcorrect=""&lt;br/&gt;/ tmp_mathopt01=""&lt;br/&gt;/ tmp_mathopt02=0&lt;br/&gt;/ tmp_mathsign=""&lt;br/&gt;/ tmp_mathopt02sign=""&lt;br/&gt;/ mathtrueanswer=0&lt;br/&gt;/ tmp_mathrand=0&lt;br/&gt;/ mathanswer=0&lt;br/&gt;/ tmp_initmath01=0&lt;br/&gt;/ tmp_initmath02=0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPRESSIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Letter String Generation is handled by two list elements:&lt;br/&gt;PracLetterList and TestLetterList.&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth) use random selection &lt;br/&gt;without replacement for each sequence.&lt;br/&gt;Switching between lists according to current study phase&lt;br/&gt;is handled dynamically by 'expressions.selectionmode'.&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions AOSPAN&amp;gt;&lt;br/&gt;/ selectionmode = if(script.currentblock=="PracLetter")PracLetterList else TestLetterList&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracLetter&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracMath&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracBoth&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrTestBoth&amp;gt;&lt;br/&gt;/ trials = [1=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrFinal&amp;gt;&lt;br/&gt;/ trials = [1=instructions; 2=score_report]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instructions&amp;gt;&lt;br/&gt;/ pretrialpause = 250&lt;br/&gt;/ posttrialpause = 250&lt;br/&gt;/ stimulustimes = [1=instructions]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ responsetime = 2000&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text instructions&amp;gt;&lt;br/&gt;/ items = instructions&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (90%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The Letter Sequence Generation is handled dynamically by 'expressions.selectionmode':&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and Letter-Math Test (Block TestBoth)&lt;br/&gt;use random selection without replacement for each sequence.&lt;br/&gt;&lt;br/&gt;&amp;lt;text Letters&amp;gt;&lt;br/&gt;/ items = ("F","P","Q","J","H","K","T","S","N","R","Y","L")&lt;br/&gt;/ fontstyle = ("Arial", 5.0%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select =  expressions.selectionmode&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Empty Item Elements for Storing Presented and Recalled Letter Sequences&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PresentedLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item RecalledLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Screen Layout Elements for the Letter Recall Grid&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text F&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text H&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text J&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text K&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text L&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text N&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text P&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Q&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text R&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text S&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text T&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Y&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text _&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text exit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickF&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickH&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickJ&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickK&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickL&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickN&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickP&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickQ&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickR&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickS&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickT&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickY&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text click_&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickclear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickexit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recalledletters&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.recalledletters%&amp;gt;")&lt;br/&gt;/ position = (50%, 80%)&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recallprompt&amp;gt;&lt;br/&gt;/ items = ("Select the letters in the order presented. Use the blank button to fill in forgotten items.")&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;/ size = (95%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text LetterFeedback&amp;gt;&lt;br/&gt;/ items = ("You recalled &amp;lt;%values.correctletters%&amp;gt; out of &amp;lt;%values.lettercount%&amp;gt; letters correctly.")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Practice Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems are hardcoded only for the Math Practice Phase (Block PracMath).&lt;br/&gt;For all other Study Phases (Block PracBoth &amp;amp; Block TestBoth) &lt;br/&gt;the Math Problems are generated dynamically.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;text PracMathProblem&amp;gt;&lt;br/&gt;/ items = PracMathProblem&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select = PracMathList&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathAnswer&amp;gt;&lt;br/&gt;/ items = PracMathAnswer&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = false&lt;br/&gt;/ select = current(PracMathProblem)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathFeedback&amp;gt;&lt;br/&gt;/ items = ("You were correct on &amp;lt;%trial.prac_solve_math.totalcorrectcount%&amp;gt; of &amp;lt;%list.PracMathList.itemcount%&amp;gt; math trials.&lt;br/&gt;That is &amp;lt;%trial.prac_solve_math.totalpercentcorrect%&amp;gt; percent correct.~r~r~r&lt;br/&gt;Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (65%, 50%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Text and Layout Items used for the Math Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblemDisplay&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathProblem.currentitem%&amp;gt; = ?")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblem&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.tmp_mathopt01%&amp;gt; &amp;lt;%values.tmp_mathsign%&amp;gt; &amp;lt;%values.tmp_mathopt02%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathCorrect&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathCorrect.selectedvalue%&amp;gt;")&lt;br/&gt;/ select =  noreplace&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 60%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathAnswer&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathanswer%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathScore&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathaccuracy%&amp;gt;%")&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ position = (85%, 15%)&lt;br/&gt;/ size = (10%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathFeedback&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"You made &amp;lt;%values.mathcurrenterrors%&amp;gt; math error(s) on this set of trials.",&lt;br/&gt;"You have made a total of 3 or more math errors during this set of trials. Please do your best on the math.")&lt;br/&gt;/ select =  values.matherrorswitch&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (80%, 30%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TRUE&amp;gt;&lt;br/&gt;/ items = ("TRUE")&lt;br/&gt;/ position = (31%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FALSE&amp;gt;&lt;br/&gt;/ items = ("FALSE")&lt;br/&gt;/ position = (69%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TestMathPrompt&amp;gt;&lt;br/&gt;/ items = ("Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathPrompt&amp;gt;&lt;br/&gt;/ items = ("When you have solved the math problem,~nclick the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text correcttext&amp;gt;&lt;br/&gt;/ items = ("Correct")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text incorrecttext&amp;gt;&lt;br/&gt;/ items = ("Incorrect")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: General Purpose Screen Layout Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;shape GrayFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = silver&lt;br/&gt;/ size = (78.3%, 78%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape BlackFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape WhiteScreen&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;LISTS:&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Item Selection&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;Beware: Item Selection differs between the task's Practice and Test Phases!&lt;br/&gt;Generally, the single-task practice phases (Blocks PracLetter &amp;amp; PracMath) rely on &lt;br/&gt;sequential item selection. The phases involving both tasks &lt;br/&gt;(Blocks PracBoth &amp;amp; TestBoth) use random selection without replacement.&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;/ selectionmode =  sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Math&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "FALSE", "TRUE", "TRUE", "FALSE", "FALSE", "TRUE", "FALSE", &lt;br/&gt;"TRUE", "FALSE", "FALSE", "TRUE", "FALSE", "TRUE", "TRUE", "FALSE")&lt;br/&gt;/ selectionmode =  text.PracMathProblem.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Test Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Generating the math problem has 4 steps&lt;br/&gt;1. Selection of the first operation, MathOpt01: "(9/3)"&lt;br/&gt;2. Selection of the second operation, MathOpt012: "- 2"&lt;br/&gt;3. Selection of whether the answer presented to subjects should be true or false, MathCorrect: "TRUE" or "FALSE"&lt;br/&gt;4. A random number added to the correct answer to make it false, MathRand: "3"&lt;br/&gt;&lt;br/&gt;Additional Math Operations &lt;br/&gt;(add to List 'MathOpt01'):&lt;br/&gt;"(4*4)", "(2*8)", "(9*2)", "(6*3)", "(3*6)", "(2*9)", "(5*4)", "(4*5)", &lt;br/&gt;"(7*3)", "(3*7)", "(8*3)", "(6*4)", "(4*6)", "(3*8)", "(5*5)", "(9*3)",&lt;br/&gt;"(3*9)", "(7*4)", "(4*7)", "(6*5)", "(5*6)", "(8*4)", "(4*8)", "(7*5)", &lt;br/&gt;"(5*7)", "(9*4)", "(6*6)", "(4*9)", "(8*5)", "(5*8)", "(7*6)", "(6*7)",&lt;br/&gt;"(9*5)", "(5*9)", "(8*6)", "(6*8)", "(7*7)", "(9*6)", "(6*9)", "(8*7)",&lt;br/&gt;"(7*8)", "(9*7)", "(7*9)", "(8*8)", "(9*8)", "(8*9)", "(9*9)"&lt;br/&gt;&lt;br/&gt;Difficulties for Additional Operations &lt;br/&gt;(add to List 'MathDifficulty'):&lt;br/&gt;"2", "2", "2", "2", "2", "2", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "4", "4", "4", "4", &lt;br/&gt;"4", "4", "4", "4", "4", "4", "4", "4",&lt;br/&gt;"4", "4", "4", "4", "4", "4", "4"&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt01&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"(1/1)", "(2/1)", "(2/2)", "(3/1)", "(3/3)", "(4/1)", "(4/2)", "(4/4)", &lt;br/&gt;"(5/1)", "(5/5)", "(6/1)", "(6/2)", "(6/3)", "(6/6)", "(7/1)", "(7/7)",&lt;br/&gt;"(8/1)", "(8/2)", "(8/4)", "(8/8)", "(9/1)", "(9/3)", "(9/9)", "(1*2)", &lt;br/&gt;"(1*3)", "(2*2)", "(1*4)", "(1*5)", "(3*2)", "(2*3)", "(1*6)", "(1*7)", &lt;br/&gt;"(4*2)", "(2*4)", "(1*8)", "(3*3)", "(1*9)", "(5*2)", "(2*5)", "(6*2)", &lt;br/&gt;"(4*3)", "(3*4)", "(2*6)", "(7*2)", "(2*7)", "(5*3)", "(3*5)", "(8*2)")&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathDifficulty&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "2", "2", "2", &lt;br/&gt;"2", "2", "2", "2", "2", "2", "2", "2")&lt;br/&gt;/ selectionmode =  list.MathOpt01.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt02&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathSign&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"+", "+", "+", "+", "+", "+", "+", "+", "+", &lt;br/&gt;"-", "-", "-", "-", "-", "-", "-", "-", "-")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Alternate MathCorrect List Logic&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;/ selectionmode =  list.MathOpt02)&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathRand&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Initialization Trial for the Different Study Phases&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitSetSize&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.currentsetsize=0; values.lettercount=0; values.correctletters=0; &lt;br/&gt;values.recallcount=0; values.recalledletters=""]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracLetter")&lt;br/&gt;{values.currentsetsize=list.PracLetterSetSize.nextvalue}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracBoth")&lt;br/&gt;{values.currentsetsize=list.PracBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="TestBoth")&lt;br/&gt;{values.currentsetsize=list.TestBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialend = [clear(item.PresentedLetters); clear(item.RecalledLetters)]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial show_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.lettercount+=1]&lt;br/&gt;/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, currentsetsize]&lt;br/&gt;/ trialduration = values.learninginterval&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial recall_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.recallcount+=1]&lt;br/&gt;/ ontrialbegin = [if(values.recallcount==1)values.recalldelay=500 else values.recalldelay=0]&lt;br/&gt;/ pretrialpause = values.recalldelay&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit, recalledletters, recallprompt, letterstrings]&lt;br/&gt;/ validresponse = (F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit)&lt;br/&gt;/ monkeyresponse = ("F", "H", "J", "K", "exit")&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response!="exit" &amp;amp;&amp;amp; trial.recall_letter.response!="clear")&lt;br/&gt;{item.RecalledLetters.item=trial.recall_letter.response; values.recalledletters=concat(values.recalledletters, trial.recall_letter.response)}]&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response=="clear")&lt;br/&gt;{clear(item.RecalledLetters); values.recalledletters=""}]&lt;br/&gt;/ responsemessage = (F, clickF, 150)&lt;br/&gt;/ responsemessage = (H, clickH, 150)&lt;br/&gt;/ responsemessage = (J, clickJ, 150)&lt;br/&gt;/ responsemessage = (K, clickK, 150)&lt;br/&gt;/ responsemessage = (L, clickL, 150)&lt;br/&gt;/ responsemessage = (N, clickN, 150)&lt;br/&gt;/ responsemessage = (P, clickP, 150)&lt;br/&gt;/ responsemessage = (Q, clickQ, 150)&lt;br/&gt;/ responsemessage = (R, clickR, 150)&lt;br/&gt;/ responsemessage = (S, clickS, 150)&lt;br/&gt;/ responsemessage = (T, clickT, 150)&lt;br/&gt;/ responsemessage = (Y, clickY, 150)&lt;br/&gt;/ responsemessage = (clear, clickclear, 150)&lt;br/&gt;/ responsemessage = (exit, clickexit, 150)&lt;br/&gt;/ responsemessage = (_, click_, 150)&lt;br/&gt;/ branch = [if(trial.recall_letter.response=="exit")trial.letter_feedback else trial.recall_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Recall Feedback:&lt;br/&gt;In this trial, the presented letter sequenceis compared &lt;br/&gt;to the letter string the participant has entered. &lt;br/&gt;Feedback is given accordingly. &lt;br/&gt;This trial also handles reporting of math performance&lt;br/&gt;for Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth).&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial letter_feedback&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ ontrialbegin = [values.correctletters=0]&lt;br/&gt;/ ontrialbegin = [if(values.mathcurrenterrors&amp;gt;=3)values.matherrorswitch=2 else values.matherrorswitch=1]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if(item.RecalledLetters.item.1 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.1==item.RecalledLetters.item.1)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.2 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.2==item.RecalledLetters.item.2)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.3 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.3==item.RecalledLetters.item.3)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.4 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.4==item.RecalledLetters.item.4)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.5 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.5==item.RecalledLetters.item.5)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.6 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.6==item.RecalledLetters.item.6)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.7 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.7==item.RecalledLetters.item.7)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.8 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.8==item.RecalledLetters.item.8)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.9 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.9==item.RecalledLetters.item.9)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.10 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.10==item.RecalledLetters.item.10)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.11 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.11==item.RecalledLetters.item.11)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.12 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.12==item.RecalledLetters.item.12)values.correctletters+=1]&lt;br/&gt;/ ontrialbegin = [if(values.correctletters==values.currentsetsize)&lt;br/&gt;{values.ospan=values.ospan+values.correctletters; values.totalrecalledsets+=1}]&lt;br/&gt;/ ontrialbegin = [values.totalcorrectletters=values.totalcorrectletters+values.correctletters]&lt;br/&gt;/ ontrialend = [values.mathcurrenterrors=0]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracLetter" &amp;amp;&amp;amp; list.PracLetterSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracBoth" &amp;amp;&amp;amp; list.PracBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="TestBoth" &amp;amp;&amp;amp; list.TestBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, LetterFeedback, MathFeedback, MathScore, scoredebug]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.InitSetSize]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_show_math&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathProblem, PracMathPrompt]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ branch = [trial.prac_solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathAnswer, TRUE, FALSE]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (list.PracMathCorrect.nextvalue)&lt;br/&gt;/ responsemessage = (anyresponse, PracMathAnswer, 800)&lt;br/&gt;/ correctmessage = true(correcttext, 800)&lt;br/&gt;/ errormessage = true(incorrecttext, 800)&lt;br/&gt;/ branch = [if(trial.prac_show_math.trialcount &amp;gt;= list.PracMathList.itemcount)&lt;br/&gt;trial.prac_math_feedback else trial.prac_show_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_math_feedback&amp;gt;&lt;br/&gt;/ ontrialend = [values.stopblock=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, PracMathFeedback]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter-Math Practice &amp;amp; Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Setting up Math Problems:&lt;br/&gt;&lt;br/&gt;'InitMathProblem01' and 'InitMathProblem02'&lt;br/&gt;are used to set up and check the randomly &lt;br/&gt;generated math problems used for&lt;br/&gt;Letter-Math Practice (Block 'PracBoth') and &lt;br/&gt;Letter-Math Test (Block 'TestBoth'). &lt;br/&gt;Only math problems with a *true* result &lt;br/&gt;greater than or equal to zero are allowed in the task. &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The calculations contained in trial 'InitMathProblem01' &lt;br/&gt;ensure that the participant is given a math problem &lt;br/&gt;with a *true* result greater than or equal to zero.&lt;br/&gt;The adjustments may cause MathOpt02 to become zero.&lt;br/&gt;This *does* happen in the original version of the task programmed&lt;br/&gt;in E-Prime.To avoid MathOpt02=0 exchange&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]' with&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0 || values.tmp_mathopt02==0)trial.InitMathProblem01]'&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem01&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01==1)&lt;br/&gt;{values.tmp_mathopt01=list.MathOpt01.nextvalue;&lt;br/&gt;values.tmp_mathsign=list.MathSign.nextvalue;&lt;br/&gt;values.tmp_mathopt02=list.MathOpt02.nextvalue;&lt;br/&gt;values.mathcorrect=list.MathCorrect.nextvalue;&lt;br/&gt;values.tmp_mathopt02sign=concat(values.tmp_mathsign, values.tmp_mathopt02);&lt;br/&gt;values.tmp_mathopt02sign=evaluate(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1)&lt;br/&gt;{values.tmp_mathopt02sign+=3;&lt;br/&gt;values.tmp_mathopt02=abs(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1 &amp;amp;&amp;amp; values.tmp_mathopt02sign&amp;gt;0)&lt;br/&gt;values.tmp_mathsign="+"]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem);&lt;br/&gt;values.mathtrueanswer=values.mathanswer]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="TRUE")trial.show_math]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="FALSE")trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;For trials that should present a *false* math answer,&lt;br/&gt;a randomly drawn integer ranging from -9 to +9 &lt;br/&gt;is added to the math problem's *true* result. &lt;br/&gt;The calculations contained in 'InitMathProblem02' ensure that &lt;br/&gt;this *false* answer is also greater than or equal to zero.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem02&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath02+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02==1)values.tmp_mathrand=list.MathRand.nextvalue]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02&amp;gt;1)values.tmp_mathrand+=2]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem)+values.tmp_mathrand]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathanswer!=values.mathtrueanswer)trial.show_math else trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;The following trials handle presentation of math problems&lt;br/&gt;and scoring of participants' responses.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;trial show_math&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01=0; values.tmp_initmath02=0;&lt;br/&gt;values.mathproblemcount+=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathProblemDisplay, TestMathPrompt, mathtimeout]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ timeout = values.mathtimeout+500&lt;br/&gt;/ ontrialend = [if(trial.show_math.response!="lbuttondown")&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathspeederrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ branch = [if(trial.show_math.response!="lbuttondown")trial.show_letter else trial.solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [if(trial.solve_math.correct==0)&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathaccerrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathAnswer, TRUE, FALSE, mathdebug]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (values.mathcorrect)&lt;br/&gt;/ branch = [trial.show_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;SCORING&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan"&amp;nbsp;scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial score_report&amp;gt;&lt;br/&gt;/ stimulusframes = [1=scorereport]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracLetter&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=white; text.MathScore.textcolor=white; values.stopblock=0]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracMath&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [values.mathaccuracy=0]&lt;br/&gt;/ onblockend = [values.mathtimeout=(2.5*trial.prac_show_math.totalsdlatency)+trial.prac_show_math.totalmeanlatency]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=prac_show_math]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block TestBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPERIMENT &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;expt AOSPAN&amp;gt;&lt;br/&gt;/ onexptbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ blocks = [1=InstrPracLetter; 2=PracLetter; 3=InstrPracMath; 4=PracMath; &lt;br/&gt;5=InstrPracBoth; 6=PracBoth; 7=InstrTestBoth; 8=TestBoth; 9=InstrFinal]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEBUG: On-Screen Debugging Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;These items are invisible by default. &lt;br/&gt;Enter 'debug' as subject id to enable them.&lt;br/&gt;&lt;br/&gt;&amp;lt;text currentsetsize&amp;gt;&lt;br/&gt;/ items = ("Setsize: &amp;lt;%values.currentsetsize%&amp;gt; / Lettercount: &amp;lt;%values.lettercount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text letterstrings&amp;gt;&lt;br/&gt;/ items = ("~tPresented Letters:~t&amp;lt;%item.PresentedLetters.item.1%&amp;gt;&amp;lt;%item.PresentedLetters.item.2%&amp;gt;&amp;lt;%item.PresentedLetters.item.3%&amp;gt;&amp;lt;%item.PresentedLetters.item.4%&amp;gt;&amp;lt;%item.PresentedLetters.item.5%&amp;gt;&amp;lt;%item.PresentedLetters.item.6%&amp;gt;&amp;lt;%item.PresentedLetters.item.7%&amp;gt;&amp;lt;%item.PresentedLetters.item.8%&amp;gt;&amp;lt;%item.PresentedLetters.item.9%&amp;gt;&amp;lt;%item.PresentedLetters.item.10%&amp;gt;&amp;lt;%item.PresentedLetters.item.11%&amp;gt;&amp;lt;%item.PresentedLetters.item.12%&amp;gt;&lt;br/&gt;~tRecalled Letters:~t&amp;lt;%item.RecalledLetters.item.1%&amp;gt;&amp;lt;%item.RecalledLetters.item.2%&amp;gt;&amp;lt;%item.RecalledLetters.item.3%&amp;gt;&amp;lt;%item.RecalledLetters.item.4%&amp;gt;&amp;lt;%item.RecalledLetters.item.5%&amp;gt;&amp;lt;%item.RecalledLetters.item.6%&amp;gt;&amp;lt;%item.RecalledLetters.item.7%&amp;gt;&amp;lt;%item.RecalledLetters.item.8%&amp;gt;&amp;lt;%item.RecalledLetters.item.9%&amp;gt;&amp;lt;%item.RecalledLetters.item.10%&amp;gt;&amp;lt;%item.RecalledLetters.item.11%&amp;gt;&amp;lt;%item.RecalledLetters.item.12%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (55%, 5%)&lt;br/&gt;/ position = (50%, 87%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathdebug&amp;gt;&lt;br/&gt;/ items = ("~tMath Problem:~t~t&amp;lt;% text.MathProblem.currentitem %&amp;gt;~r&lt;br/&gt;~tTrue Answer:~t~t&amp;lt;% values.mathtrueanswer %&amp;gt;~r&lt;br/&gt;~tPresented Answer:~t&amp;lt;% values.mathcorrect %&amp;gt;~r~r")&lt;br/&gt;/ size = (50%, 7%)&lt;br/&gt;/ halign = center&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ position = (45%, 70%)&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathtimeout&amp;gt;&lt;br/&gt;/ items = ("Timeout = &amp;lt;%values.mathtimeout%&amp;gt; ms~r&lt;br/&gt;Math Problem # &amp;lt;%values.mathproblemcount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 20%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scoredebug&amp;gt;&lt;br/&gt;/ items = ("OSPAN Score:~t~t&amp;lt;% values.ospan %&amp;gt;&lt;br/&gt;Total Number Correct:~t&amp;lt;% values.totalcorrectletters %&amp;gt;~r~r&lt;br/&gt;Math Errors (Total):~t&amp;lt;% values.mathtotalerrors %&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;% values.mathspeederrors %&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;% values.mathaccerrors %&amp;gt;~r~r")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 75%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;monkey AOSPAN&amp;gt;&lt;br/&gt;/ latencydistribution = normal(800, 200)&lt;br/&gt;/ percentcorrect = 100&lt;br/&gt;&amp;lt;/monkey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;End of File&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20792"&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; If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I &lt;br/&gt;&amp;gt; do that?&amp;nbsp;                			    							    &lt;br/&gt;&lt;br/&gt;Then you need to split things in several &amp;lt;trial&amp;gt;s: One that presents the equation and requires a mouse-click, followed by one that presents the response options and collects the color-response.&lt;br/&gt;&lt;br/&gt;I have no idea what the OSPAN code has to do with any of this.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20795"&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;Can you show me what you mean by having separate trials?&amp;nbsp;&lt;br/&gt;My ultimate goal is to adapt the instructions from OSPAN to use for a control condition (the equations with different colors). Then I need to use the same practice trials from the OSPAN for that task. Here is all I have so far....&lt;br/&gt;&lt;br/&gt;&lt;title&gt;&lt;/title&gt;&lt;p class="p1"&gt;&amp;lt;defaults&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ inputdevice = mouse&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/defaults&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;block myblock&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/block&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;trial black&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;/p&gt;&lt;p class="p1"&gt;/ stimulustimes = [1=equation; 5000=blank, question, black, green, blue, red]&lt;/p&gt;&lt;p class="p1"&gt;/ validresponse = (black, green, blue, red)&lt;/p&gt;&lt;p class="p1"&gt;/ correctresponse = (black)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;trial green&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;/p&gt;&lt;p class="p1"&gt;/ stimulustimes = [1=equation; 5000=blank, question, black, green, blue, red]&lt;/p&gt;&lt;p class="p1"&gt;/ validresponse = (black, green, blue, red)&lt;/p&gt;&lt;p class="p1"&gt;/ correctresponse = (green)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;trial blue&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;/p&gt;&lt;p class="p1"&gt;/ stimulustimes = [1=equation; 5000=blank, question, black, green, blue, red]&lt;/p&gt;&lt;p class="p1"&gt;/ validresponse = (black, green, blue, red)&lt;/p&gt;&lt;p class="p1"&gt;/ correctresponse = (blue)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;trial red&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;/p&gt;&lt;p class="p1"&gt;/ stimulustimes = [1=equation; 5000=blank, question, black, green, blue, red]&lt;/p&gt;&lt;p class="p1"&gt;/ validresponse = (black, green, blue, red)&lt;/p&gt;&lt;p class="p1"&gt;/ correctresponse = (red)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text equation&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = equations&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;item equations&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ 01 = "(1*2) + 1 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 02 = "(1/1) - 1 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 03 = "(7*3) - 3 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 04 = "(4*3) + 4 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 05 = "(3/3) + 2 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 06 = "(2*6) - 4 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 07 = "(8*9) - 8 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 08 = "(4*5) - 5 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 09 = "(4*2) + 6 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 10 = "(4/4) + 7 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 11 = "(8*2) - 8 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 12 = "(2*9) - 9 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 13 = "(8/2) + 9 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 14 = "(3*8) - 1 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 15 = "(6/3) + 1 = ?"&lt;/p&gt;&lt;p class="p1"&gt;/ 16 = "(9/3) - 2 = ?"&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/item&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;shape blank&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ shape = rectangle&lt;/p&gt;&lt;p class="p1"&gt;/ color = white&lt;/p&gt;&lt;p class="p1"&gt;/ size = (100%, 100%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/shape&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text question&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("What color was the equation?")&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text black&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("BLACK")&lt;/p&gt;&lt;p class="p1"&gt;/ txcolor = black&lt;/p&gt;&lt;p class="p1"&gt;/ position = (20%, 75%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text green&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("GREEN")&lt;/p&gt;&lt;p class="p1"&gt;/ txcolor = green&lt;/p&gt;&lt;p class="p1"&gt;/ position = (40%, 75%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text blue&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("BLUE")&lt;/p&gt;&lt;p class="p1"&gt;/ txcolor = blue&lt;/p&gt;&lt;p class="p1"&gt;/ position = (60%, 75%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;text red&amp;gt;&lt;/p&gt;&lt;p class="p1"&gt;/ items = ("RED")&lt;/p&gt;&lt;p class="p1"&gt;/ txcolor = red&lt;/p&gt;&lt;p class="p1"&gt;/ position = (80%, 75%)&lt;/p&gt;&lt;p class="p1"&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 20 Feb 2017 08:10:47 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20803.aspx</link><description>&lt;div data-id="20795" class="if-quote-wrapper" unselectable="on" data-guid="1487606549463"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20795" 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="20795" 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="20795" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 20, 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-20795"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20792" class="if-quote-wrapper" unselectable="on" data-guid="1487606549463"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20792" 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="20792" 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="20792" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20792"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20789" class="if-quote-wrapper" unselectable="on" data-guid="1487606549463"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20789" 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="20789" 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="20789" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20789"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487606549463"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487606549463"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487606549463"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487606549463"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487606549463"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487606549463"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I do that?&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20789"&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;Here is the entire syntax for the operation span task.....&lt;br/&gt;&amp;lt;usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;Automated Operation Span Task (AOSPAN)&lt;br/&gt;SCRIPT INFO&lt;br/&gt;&lt;br/&gt;Main Inquisit programming: David Nitz (&lt;a href="mailto:dave@millisecond.com"&gt;dave@millisecond.com&lt;/a&gt;) for Millisecond Software, LLC.&lt;br/&gt;Additional Inquisit programming: Jerry Grenard (&lt;a href="mailto:grenard@ucla.edu"&gt;grenard@ucla.edu&lt;/a&gt;), Sean Draine (&lt;a href="mailto:seandr@millisecond.com"&gt;seandr@millisecond.com&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;last updated: 01-20-2016 by K.Borchert (&lt;a href="mailto:katjab@millisecond.com"&gt;katjab@millisecond.com&lt;/a&gt;) for Millisecond Software LLC&lt;br/&gt;&lt;br/&gt;Script Copyright © 01-20-2016 Millisecond Software&lt;br/&gt;Task Copyright © 2005 by Dr. Randall Engle (&lt;a href="http://psychology.gatech.edu/renglelab/)"&gt;&lt;a href="http://psychology.gatech.edu/renglelab/)"&gt;http://psychology.gatech.edu/renglelab/)&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;BACKGROUND INFO&lt;br/&gt;&lt;br/&gt;*Purpose*&lt;br/&gt;This script implements the Automated Operation Span Task (AOSPAN).&lt;br/&gt;&lt;br/&gt;Working Memory Span Tasks Reference:&lt;br/&gt;CONWAY, A.R.A., KANE, M.J.,BUNTING, M.F., D. ZACH HAMBRICK, D.Z., WILHELM, O., &amp;amp; ENGLE, R.W. (2005).&lt;br/&gt;Working memory span tasks: A methodological review and user’s guide. Psychonomic Bulletin &amp;amp; Review&lt;br/&gt;2005, 12 (5), 769-786.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  *Task*&lt;br/&gt;Participants are presented a visual sequences of letters ranging from 3-7 letters (default) that need to be recalled at the end.&lt;br/&gt;Each letter in the sequence in preceded by a math problem ("(8*2) - 8 = ?") followed by a proposed solution ("e.g. 9") &lt;br/&gt;and participants have to decide whether the proposed solution is correct or not. &lt;br/&gt;Letter recall is tested by asking participants to selecte letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;DATA FILE INFORMATION: &lt;br/&gt;The default data stored in the data files are:&lt;br/&gt;&lt;br/&gt;(1) Raw data file: 'AOSPAN_raw.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;build:Inquisit build&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;date, time, subject, group:date and time script was run with the current subject/groupnumber &lt;br/&gt;blockcode, blocknum:the name and number of the current block&lt;br/&gt;trialcode, trialnum: the name and number of the currently recorded trial&lt;br/&gt;(Note: not all trials that are run might record data; by default data is collected unless /recorddata = false is set for a particular trial/block) &lt;br/&gt;stimulusitem:the presented stimuli in order of trial presentation&lt;br/&gt;response:the participant's response&lt;br/&gt;correct:the correctness of the response (1 = correct; 0 = incorrect)&lt;br/&gt;latency: the response latency (in ms)&lt;br/&gt;/currentsetsize: the number of letters to recall for the current problem&lt;br/&gt;text.letters.currentitem: the currently presented letter&lt;br/&gt;/mathproblemcount: counts the number of math problems in a given block&lt;br/&gt;text.MathProblem.currentitem: the currently presented math problem&lt;br/&gt;/mathtrueanswer:the correct math answer&lt;br/&gt;/mathanswer:the math response given&lt;br/&gt;/mathcorrect:1 = correct math response; 0 = incorrect math response&lt;br/&gt;/matheaccuracy: percentage of correctly solved math problems within the current block&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/recalledletters: the number of letters recalled of the current problem&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/totalrecalledsets: the number of correctly recalled sets&lt;br/&gt;&lt;br/&gt;(2) Summary data file: 'AOSPAN_summary*.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;script.startdate:date script was run&lt;br/&gt;script.starttime:time script was started&lt;br/&gt;script.subjectid:subject id number&lt;br/&gt;script.groupid:group id number&lt;br/&gt;script.elapsedtime:time it took to run script (in ms)&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;/completed:0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;EXPERIMENTAL SET-UP&lt;br/&gt;1 Practice Session (default):&lt;br/&gt;a) Practice of recalling sequences of letters of set sizes 2-3 in ascending order (4 trials)&lt;br/&gt;b) Practice of math task (15 trials)&lt;br/&gt;c) Combined practice of recalling sequence of letters (set size 2 only) and math problem: each letter is &lt;br/&gt;preceded by a math problem (3 trials)&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Test Session (default):&lt;br/&gt;15 Trials (15 = 3 repetitions of 5 set sizes; order of set sizes is randomly determined): &lt;br/&gt;Recalling sequences of letters (set size 3-7): each letter is preceded by a math problem;&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Scoring:&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;STIMULI:&lt;br/&gt;Letters: T, L, Q, N, F, H, Y, S, P, K, R, J&lt;br/&gt;Math Problems (test): created on runtime; only math problems with a *true* result &amp;gt;= 0 are allowed in the task&lt;br/&gt;&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;see section Editable Instructions&lt;br/&gt;&lt;br/&gt;EDITABLE CODE:&lt;br/&gt;check below for (relatively) easily editable parameters, stimuli, instructions etc. &lt;br/&gt;Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.&lt;br/&gt;&lt;br/&gt;&amp;lt;/usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE STIMULI: change editable stimuli here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathProblem&amp;gt;&lt;br/&gt;/ 01 = "(1*2) + 1 = ?"&lt;br/&gt;/ 02 = "(1/1) - 1 = ?"&lt;br/&gt;/ 03 = "(7*3) - 3 = ?"&lt;br/&gt;/ 04 = "(4*3) + 4 = ?"&lt;br/&gt;/ 05 = "(3/3) + 2 = ?"&lt;br/&gt;/ 06 = "(2*6) - 4 = ?"&lt;br/&gt;/ 07 = "(8*9) - 8 = ?"&lt;br/&gt;/ 08 = "(4*5) - 5 = ?"&lt;br/&gt;/ 09 = "(4*2) + 6 = ?"&lt;br/&gt;/ 10 = "(4/4) + 7 = ?"&lt;br/&gt;/ 11 = "(8*2) - 8 = ?"&lt;br/&gt;/ 12 = "(2*9) - 9 = ?"&lt;br/&gt;/ 13 = "(8/2) + 9 = ?"&lt;br/&gt;/ 14 = "(3*8) - 1 = ?"&lt;br/&gt;/ 15 = "(6/3) + 1 = ?"&lt;br/&gt;/ 16 = "(9/3) - 2 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathAnswer&amp;gt;&lt;br/&gt;/ 01 = "3"&lt;br/&gt;/ 02 = "2"&lt;br/&gt;/ 03 = "18"&lt;br/&gt;/ 04 = "16"&lt;br/&gt;/ 05 = "1"&lt;br/&gt;/ 06 = "6"&lt;br/&gt;/ 07 = "64"&lt;br/&gt;/ 08 = "11"&lt;br/&gt;/ 09 = "14"&lt;br/&gt;/ 10 = "12"&lt;br/&gt;/ 11 = "2"&lt;br/&gt;/ 12 = "9"&lt;br/&gt;/ 13 = "7"&lt;br/&gt;/ 14 = "23"&lt;br/&gt;/ 15 = "3"&lt;br/&gt;/ 16 = "7"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE INSTRUCTIONS: change instructions here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;/ 1 = "In this experiment you will try to memorize letters you see on the screen &lt;br/&gt;while you also solve simple math problems.~r &lt;br/&gt;In the next few minutes, you will have some practice to get you familiar with how the experiment works.~r&lt;br/&gt;We will begin by practicing the letter part of the experiment.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin."&lt;br/&gt;/ 2 = "For this practice set, letters will appear on the screen one at a time.&lt;br/&gt;Try to remember each letter in the order presented.~r&lt;br/&gt;After a few sets, a recall screen will appear. Select the letters in the same order that you saw them. &lt;br/&gt;To do this, &amp;lt;%expressions.buttoninstruct2%&amp;gt;.~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 3 = "When you have selected all the letters, and they are in the correct order at the bottom of your screen,&lt;br/&gt;hit the EXIT box at the bottom right of the screen.~r&lt;br/&gt;If you make a mistake, hit the CLEAR box to start over.~r&lt;br/&gt;If you forget one of the letters, &amp;lt;%expressions.buttoninstruct3%&amp;gt; the BLANK box to mark the spot&lt;br/&gt;for the missing letter.~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to start the letter practice."&lt;br/&gt;/ 4 = "Now you will practice doing the math part of the experiment.~r~r&lt;br/&gt;A math problem will appear on the screen, like this:~r&lt;br/&gt;(2 * 1) + 1 = ?~r&lt;br/&gt;Once the equation is presented, you should compute the correct answer as quickly as you can. &lt;br/&gt;When you know the correct answer, you will &amp;lt;%expressions.buttoninstruct1%&amp;gt;.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 5 = "You will see a number displayed on the next screen,&lt;br/&gt;along with a box marked TRUE and a box marked FALSE.~r&lt;br/&gt;If the number on the screen is the correct answer to the math problem,&lt;br/&gt;&amp;lt;%expressions.buttoninstruct3%&amp;gt; on the TRUE box with the mouse.&lt;br/&gt;If the number is not the correct answer, &amp;lt;%expressions.buttoninstruct3%&amp;gt; on the FALSE box.~r&lt;br/&gt;After you &amp;lt;%expressions.buttoninstruct3%&amp;gt; on one of the boxes,&lt;br/&gt;the computer will tell you if you made the right choice.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 6 = "It is VERY important that you get the math problems correct.&lt;br/&gt;It is also important that you try and solve the problem as quickly as you can.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 7 = "Now you will practice doing both parts of the experiment at the same time.~r~r&lt;br/&gt;You will be given one of the math problems and make your decision about the answer. &lt;br/&gt;Then, a letter will appear on the screen. Try and remember the letter.~r&lt;br/&gt;The computer will automatically move you onto the next letter part, if you do not answer fast enough.&lt;br/&gt;Skipping the True or False part will count that problem as a math error.~r&lt;br/&gt;Therefore it is VERY important to solve the problems&lt;br/&gt;as quickly and as accurately as possible.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 8 = "At the end of each set of letters and math problems, a recall screen will appear.&lt;br/&gt;Use the mouse to select the letters in the same order that you saw them. &lt;br/&gt;It is important to work QUICKLY and ACCURATELY on the math.&lt;br/&gt;After the recall screen, you will be given feedback about your performance&lt;br/&gt;regarding both the number of letters recalled and the percent correct on&lt;br/&gt;the math problems.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 9 = "During the feedback, you will see a number in red in the top right of the screen.&lt;br/&gt;This indicates your percent correct for the math problems&lt;br/&gt;for the entire experiment.~r&lt;br/&gt;It is VERY important for you to keep this at least at 85%.&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 10 = "That is the end of the practice.~r~r&lt;br/&gt;The real trials will look like the practice trials you just completed.&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;If not, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin the experiment."&lt;br/&gt;/ 11 = "Thank you for your participation."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scorereport&amp;gt;&lt;br/&gt;/ items = ("~tResults for Subject #&amp;lt;%script.subjectid%&amp;gt;~r~r&lt;br/&gt;OSPAN Absolute Score:~t&amp;lt;%values.ospan%&amp;gt;&lt;br/&gt;OSPAN Total Correct:~t&amp;lt;%values.totalcorrectletters%&amp;gt;~r~r&lt;br/&gt;Math Total Errors:~t&amp;lt;%values.mathtotalerrors%&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;%values.mathspeederrors%&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;%values.mathaccerrors%&amp;gt;~r~r")&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (52%, 50%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;****************************************************************************************************&lt;br/&gt;general instruction expressions: adjust the instruction text depending on device used to run script&lt;br/&gt;****************************************************************************************************&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/buttoninstruct1 = if (computer.touch) {"tap the screen";} else {"click the mouse button";}&lt;br/&gt;/buttoninstruct2 = if (computer.touch) {"tap the letters you want to select";} else {"use the mouse to select each letter";}&lt;br/&gt;/buttoninstruct3 = if (computer.touch) {"tap";} else {"click";}&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE LISTS: change editable lists here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Adjustable Task Lists:&lt;br/&gt;The following list elements contain the set sizes used for the different study phases. &lt;br/&gt;The set sizes determine how many letters the participant has to remember&lt;br/&gt;as well as the number of math problems she/he has to solve intermittently.&lt;br/&gt;The task can be extended by modifying these values. The script can handle a maximum &lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,3,3)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;list PracBothSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,2)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestBothSetSize&amp;gt;&lt;br/&gt;/ items = (3,3,3,4,4,4,5,5,5,6,6,6,7,7,7)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;!!!REMAINING CODE: Customize after careful consideration only!!!&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEFAULTS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;script requires Inquisit 5.0.0.0 or higher&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ canvassize = (100%,100%)&lt;br/&gt;/ canvasaspectratio = (4,3)&lt;br/&gt;/ screencolor = white&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ txbgcolor = transparent&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ minimumversion = "5.0.0.0"&lt;br/&gt;/ halign = center&lt;br/&gt;/ valign = center&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DATA&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: data file explanations under User Manual Information at the top&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;raw data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, date, time, subject, group, blockcode, blocknum, trialcode, trialnum, latency, response, correct,&lt;br/&gt;values.currentsetsize, text.letters.currentitem, values.mathproblemcount, &lt;br/&gt;text.MathProblem.currentitem, values.mathtrueanswer, values.mathanswer, &lt;br/&gt;values.mathcorrect, values.mathaccuracy, values.mathtotalerrors, values.mathaccerrors, &lt;br/&gt;values.mathspeederrors, values.mathtimeout, values.recalledletters, &lt;br/&gt;values.totalcorrectletters, values.totalrecalledsets, values.ospan)&lt;br/&gt;/ labels = true&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;summary data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/ columns = (script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime, computer.platform, values.completed, &lt;br/&gt;values.ospan, &lt;br/&gt;values.totalcorrectletters, values.mathtotalerrors, values.mathspeederrors, &lt;br/&gt;values.mathaccerrors)&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/summarydata&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;VALUES: automatically updated&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/completed:0 = script was not completed; 1 = script was completed (all conditions run)&lt;br/&gt;&lt;br/&gt;&amp;lt;values AOSPAN&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;/ stopblock=0&lt;br/&gt;/ learninginterval=1000&lt;br/&gt;/ currentsetsize=0&lt;br/&gt;/ lettercount=0&lt;br/&gt;/ correctletters=0&lt;br/&gt;/ totalcorrectletters=0&lt;br/&gt;/ ospan=0&lt;br/&gt;/ totalrecalledsets=0&lt;br/&gt;/ recalledletters=""&lt;br/&gt;/ recallcount=0&lt;br/&gt;/ recalldelay=0&lt;br/&gt;/ mathaccuracy=0&lt;br/&gt;/ mathaccerrors=0&lt;br/&gt;/ mathcurrenterrors=0&lt;br/&gt;/ mathtotalerrors=0&lt;br/&gt;/ mathspeederrors=0&lt;br/&gt;/ mathtimeout=5000&lt;br/&gt;/ mathproblemcount=0&lt;br/&gt;/ matherrorswitch=1&lt;br/&gt;/ mathcorrect=""&lt;br/&gt;/ tmp_mathopt01=""&lt;br/&gt;/ tmp_mathopt02=0&lt;br/&gt;/ tmp_mathsign=""&lt;br/&gt;/ tmp_mathopt02sign=""&lt;br/&gt;/ mathtrueanswer=0&lt;br/&gt;/ tmp_mathrand=0&lt;br/&gt;/ mathanswer=0&lt;br/&gt;/ tmp_initmath01=0&lt;br/&gt;/ tmp_initmath02=0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPRESSIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Letter String Generation is handled by two list elements:&lt;br/&gt;PracLetterList and TestLetterList.&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth) use random selection &lt;br/&gt;without replacement for each sequence.&lt;br/&gt;Switching between lists according to current study phase&lt;br/&gt;is handled dynamically by 'expressions.selectionmode'.&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions AOSPAN&amp;gt;&lt;br/&gt;/ selectionmode = if(script.currentblock=="PracLetter")PracLetterList else TestLetterList&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracLetter&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracMath&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracBoth&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrTestBoth&amp;gt;&lt;br/&gt;/ trials = [1=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrFinal&amp;gt;&lt;br/&gt;/ trials = [1=instructions; 2=score_report]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instructions&amp;gt;&lt;br/&gt;/ pretrialpause = 250&lt;br/&gt;/ posttrialpause = 250&lt;br/&gt;/ stimulustimes = [1=instructions]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ responsetime = 2000&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text instructions&amp;gt;&lt;br/&gt;/ items = instructions&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (90%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The Letter Sequence Generation is handled dynamically by 'expressions.selectionmode':&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and Letter-Math Test (Block TestBoth)&lt;br/&gt;use random selection without replacement for each sequence.&lt;br/&gt;&lt;br/&gt;&amp;lt;text Letters&amp;gt;&lt;br/&gt;/ items = ("F","P","Q","J","H","K","T","S","N","R","Y","L")&lt;br/&gt;/ fontstyle = ("Arial", 5.0%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select =  expressions.selectionmode&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Empty Item Elements for Storing Presented and Recalled Letter Sequences&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PresentedLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item RecalledLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Screen Layout Elements for the Letter Recall Grid&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text F&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text H&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text J&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text K&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text L&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text N&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text P&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Q&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text R&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text S&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text T&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Y&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text _&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text exit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickF&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickH&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickJ&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickK&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickL&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickN&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickP&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickQ&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickR&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickS&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickT&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickY&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text click_&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickclear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickexit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recalledletters&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.recalledletters%&amp;gt;")&lt;br/&gt;/ position = (50%, 80%)&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recallprompt&amp;gt;&lt;br/&gt;/ items = ("Select the letters in the order presented. Use the blank button to fill in forgotten items.")&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;/ size = (95%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text LetterFeedback&amp;gt;&lt;br/&gt;/ items = ("You recalled &amp;lt;%values.correctletters%&amp;gt; out of &amp;lt;%values.lettercount%&amp;gt; letters correctly.")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Practice Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems are hardcoded only for the Math Practice Phase (Block PracMath).&lt;br/&gt;For all other Study Phases (Block PracBoth &amp;amp; Block TestBoth) &lt;br/&gt;the Math Problems are generated dynamically.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;text PracMathProblem&amp;gt;&lt;br/&gt;/ items = PracMathProblem&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select = PracMathList&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathAnswer&amp;gt;&lt;br/&gt;/ items = PracMathAnswer&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = false&lt;br/&gt;/ select = current(PracMathProblem)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathFeedback&amp;gt;&lt;br/&gt;/ items = ("You were correct on &amp;lt;%trial.prac_solve_math.totalcorrectcount%&amp;gt; of &amp;lt;%list.PracMathList.itemcount%&amp;gt; math trials.&lt;br/&gt;That is &amp;lt;%trial.prac_solve_math.totalpercentcorrect%&amp;gt; percent correct.~r~r~r&lt;br/&gt;Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (65%, 50%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Text and Layout Items used for the Math Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblemDisplay&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathProblem.currentitem%&amp;gt; = ?")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblem&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.tmp_mathopt01%&amp;gt; &amp;lt;%values.tmp_mathsign%&amp;gt; &amp;lt;%values.tmp_mathopt02%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathCorrect&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathCorrect.selectedvalue%&amp;gt;")&lt;br/&gt;/ select =  noreplace&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 60%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathAnswer&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathanswer%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathScore&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathaccuracy%&amp;gt;%")&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ position = (85%, 15%)&lt;br/&gt;/ size = (10%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathFeedback&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"You made &amp;lt;%values.mathcurrenterrors%&amp;gt; math error(s) on this set of trials.",&lt;br/&gt;"You have made a total of 3 or more math errors during this set of trials. Please do your best on the math.")&lt;br/&gt;/ select =  values.matherrorswitch&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (80%, 30%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TRUE&amp;gt;&lt;br/&gt;/ items = ("TRUE")&lt;br/&gt;/ position = (31%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FALSE&amp;gt;&lt;br/&gt;/ items = ("FALSE")&lt;br/&gt;/ position = (69%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TestMathPrompt&amp;gt;&lt;br/&gt;/ items = ("Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathPrompt&amp;gt;&lt;br/&gt;/ items = ("When you have solved the math problem,~nclick the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text correcttext&amp;gt;&lt;br/&gt;/ items = ("Correct")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text incorrecttext&amp;gt;&lt;br/&gt;/ items = ("Incorrect")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: General Purpose Screen Layout Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;shape GrayFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = silver&lt;br/&gt;/ size = (78.3%, 78%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape BlackFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape WhiteScreen&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;LISTS:&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Item Selection&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;Beware: Item Selection differs between the task's Practice and Test Phases!&lt;br/&gt;Generally, the single-task practice phases (Blocks PracLetter &amp;amp; PracMath) rely on &lt;br/&gt;sequential item selection. The phases involving both tasks &lt;br/&gt;(Blocks PracBoth &amp;amp; TestBoth) use random selection without replacement.&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;/ selectionmode =  sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Math&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "FALSE", "TRUE", "TRUE", "FALSE", "FALSE", "TRUE", "FALSE", &lt;br/&gt;"TRUE", "FALSE", "FALSE", "TRUE", "FALSE", "TRUE", "TRUE", "FALSE")&lt;br/&gt;/ selectionmode =  text.PracMathProblem.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Test Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Generating the math problem has 4 steps&lt;br/&gt;1. Selection of the first operation, MathOpt01: "(9/3)"&lt;br/&gt;2. Selection of the second operation, MathOpt012: "- 2"&lt;br/&gt;3. Selection of whether the answer presented to subjects should be true or false, MathCorrect: "TRUE" or "FALSE"&lt;br/&gt;4. A random number added to the correct answer to make it false, MathRand: "3"&lt;br/&gt;&lt;br/&gt;Additional Math Operations &lt;br/&gt;(add to List 'MathOpt01'):&lt;br/&gt;"(4*4)", "(2*8)", "(9*2)", "(6*3)", "(3*6)", "(2*9)", "(5*4)", "(4*5)", &lt;br/&gt;"(7*3)", "(3*7)", "(8*3)", "(6*4)", "(4*6)", "(3*8)", "(5*5)", "(9*3)",&lt;br/&gt;"(3*9)", "(7*4)", "(4*7)", "(6*5)", "(5*6)", "(8*4)", "(4*8)", "(7*5)", &lt;br/&gt;"(5*7)", "(9*4)", "(6*6)", "(4*9)", "(8*5)", "(5*8)", "(7*6)", "(6*7)",&lt;br/&gt;"(9*5)", "(5*9)", "(8*6)", "(6*8)", "(7*7)", "(9*6)", "(6*9)", "(8*7)",&lt;br/&gt;"(7*8)", "(9*7)", "(7*9)", "(8*8)", "(9*8)", "(8*9)", "(9*9)"&lt;br/&gt;&lt;br/&gt;Difficulties for Additional Operations &lt;br/&gt;(add to List 'MathDifficulty'):&lt;br/&gt;"2", "2", "2", "2", "2", "2", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "4", "4", "4", "4", &lt;br/&gt;"4", "4", "4", "4", "4", "4", "4", "4",&lt;br/&gt;"4", "4", "4", "4", "4", "4", "4"&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt01&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"(1/1)", "(2/1)", "(2/2)", "(3/1)", "(3/3)", "(4/1)", "(4/2)", "(4/4)", &lt;br/&gt;"(5/1)", "(5/5)", "(6/1)", "(6/2)", "(6/3)", "(6/6)", "(7/1)", "(7/7)",&lt;br/&gt;"(8/1)", "(8/2)", "(8/4)", "(8/8)", "(9/1)", "(9/3)", "(9/9)", "(1*2)", &lt;br/&gt;"(1*3)", "(2*2)", "(1*4)", "(1*5)", "(3*2)", "(2*3)", "(1*6)", "(1*7)", &lt;br/&gt;"(4*2)", "(2*4)", "(1*8)", "(3*3)", "(1*9)", "(5*2)", "(2*5)", "(6*2)", &lt;br/&gt;"(4*3)", "(3*4)", "(2*6)", "(7*2)", "(2*7)", "(5*3)", "(3*5)", "(8*2)")&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathDifficulty&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "2", "2", "2", &lt;br/&gt;"2", "2", "2", "2", "2", "2", "2", "2")&lt;br/&gt;/ selectionmode =  list.MathOpt01.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt02&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathSign&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"+", "+", "+", "+", "+", "+", "+", "+", "+", &lt;br/&gt;"-", "-", "-", "-", "-", "-", "-", "-", "-")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Alternate MathCorrect List Logic&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;/ selectionmode =  list.MathOpt02)&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathRand&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Initialization Trial for the Different Study Phases&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitSetSize&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.currentsetsize=0; values.lettercount=0; values.correctletters=0; &lt;br/&gt;values.recallcount=0; values.recalledletters=""]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracLetter")&lt;br/&gt;{values.currentsetsize=list.PracLetterSetSize.nextvalue}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracBoth")&lt;br/&gt;{values.currentsetsize=list.PracBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="TestBoth")&lt;br/&gt;{values.currentsetsize=list.TestBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialend = [clear(item.PresentedLetters); clear(item.RecalledLetters)]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial show_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.lettercount+=1]&lt;br/&gt;/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, currentsetsize]&lt;br/&gt;/ trialduration = values.learninginterval&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial recall_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.recallcount+=1]&lt;br/&gt;/ ontrialbegin = [if(values.recallcount==1)values.recalldelay=500 else values.recalldelay=0]&lt;br/&gt;/ pretrialpause = values.recalldelay&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit, recalledletters, recallprompt, letterstrings]&lt;br/&gt;/ validresponse = (F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit)&lt;br/&gt;/ monkeyresponse = ("F", "H", "J", "K", "exit")&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response!="exit" &amp;amp;&amp;amp; trial.recall_letter.response!="clear")&lt;br/&gt;{item.RecalledLetters.item=trial.recall_letter.response; values.recalledletters=concat(values.recalledletters, trial.recall_letter.response)}]&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response=="clear")&lt;br/&gt;{clear(item.RecalledLetters); values.recalledletters=""}]&lt;br/&gt;/ responsemessage = (F, clickF, 150)&lt;br/&gt;/ responsemessage = (H, clickH, 150)&lt;br/&gt;/ responsemessage = (J, clickJ, 150)&lt;br/&gt;/ responsemessage = (K, clickK, 150)&lt;br/&gt;/ responsemessage = (L, clickL, 150)&lt;br/&gt;/ responsemessage = (N, clickN, 150)&lt;br/&gt;/ responsemessage = (P, clickP, 150)&lt;br/&gt;/ responsemessage = (Q, clickQ, 150)&lt;br/&gt;/ responsemessage = (R, clickR, 150)&lt;br/&gt;/ responsemessage = (S, clickS, 150)&lt;br/&gt;/ responsemessage = (T, clickT, 150)&lt;br/&gt;/ responsemessage = (Y, clickY, 150)&lt;br/&gt;/ responsemessage = (clear, clickclear, 150)&lt;br/&gt;/ responsemessage = (exit, clickexit, 150)&lt;br/&gt;/ responsemessage = (_, click_, 150)&lt;br/&gt;/ branch = [if(trial.recall_letter.response=="exit")trial.letter_feedback else trial.recall_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Recall Feedback:&lt;br/&gt;In this trial, the presented letter sequenceis compared &lt;br/&gt;to the letter string the participant has entered. &lt;br/&gt;Feedback is given accordingly. &lt;br/&gt;This trial also handles reporting of math performance&lt;br/&gt;for Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth).&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial letter_feedback&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ ontrialbegin = [values.correctletters=0]&lt;br/&gt;/ ontrialbegin = [if(values.mathcurrenterrors&amp;gt;=3)values.matherrorswitch=2 else values.matherrorswitch=1]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if(item.RecalledLetters.item.1 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.1==item.RecalledLetters.item.1)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.2 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.2==item.RecalledLetters.item.2)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.3 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.3==item.RecalledLetters.item.3)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.4 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.4==item.RecalledLetters.item.4)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.5 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.5==item.RecalledLetters.item.5)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.6 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.6==item.RecalledLetters.item.6)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.7 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.7==item.RecalledLetters.item.7)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.8 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.8==item.RecalledLetters.item.8)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.9 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.9==item.RecalledLetters.item.9)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.10 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.10==item.RecalledLetters.item.10)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.11 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.11==item.RecalledLetters.item.11)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.12 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.12==item.RecalledLetters.item.12)values.correctletters+=1]&lt;br/&gt;/ ontrialbegin = [if(values.correctletters==values.currentsetsize)&lt;br/&gt;{values.ospan=values.ospan+values.correctletters; values.totalrecalledsets+=1}]&lt;br/&gt;/ ontrialbegin = [values.totalcorrectletters=values.totalcorrectletters+values.correctletters]&lt;br/&gt;/ ontrialend = [values.mathcurrenterrors=0]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracLetter" &amp;amp;&amp;amp; list.PracLetterSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracBoth" &amp;amp;&amp;amp; list.PracBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="TestBoth" &amp;amp;&amp;amp; list.TestBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, LetterFeedback, MathFeedback, MathScore, scoredebug]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.InitSetSize]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_show_math&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathProblem, PracMathPrompt]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ branch = [trial.prac_solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathAnswer, TRUE, FALSE]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (list.PracMathCorrect.nextvalue)&lt;br/&gt;/ responsemessage = (anyresponse, PracMathAnswer, 800)&lt;br/&gt;/ correctmessage = true(correcttext, 800)&lt;br/&gt;/ errormessage = true(incorrecttext, 800)&lt;br/&gt;/ branch = [if(trial.prac_show_math.trialcount &amp;gt;= list.PracMathList.itemcount)&lt;br/&gt;trial.prac_math_feedback else trial.prac_show_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_math_feedback&amp;gt;&lt;br/&gt;/ ontrialend = [values.stopblock=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, PracMathFeedback]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter-Math Practice &amp;amp; Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Setting up Math Problems:&lt;br/&gt;&lt;br/&gt;'InitMathProblem01' and 'InitMathProblem02'&lt;br/&gt;are used to set up and check the randomly &lt;br/&gt;generated math problems used for&lt;br/&gt;Letter-Math Practice (Block 'PracBoth') and &lt;br/&gt;Letter-Math Test (Block 'TestBoth'). &lt;br/&gt;Only math problems with a *true* result &lt;br/&gt;greater than or equal to zero are allowed in the task. &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The calculations contained in trial 'InitMathProblem01' &lt;br/&gt;ensure that the participant is given a math problem &lt;br/&gt;with a *true* result greater than or equal to zero.&lt;br/&gt;The adjustments may cause MathOpt02 to become zero.&lt;br/&gt;This *does* happen in the original version of the task programmed&lt;br/&gt;in E-Prime.To avoid MathOpt02=0 exchange&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]' with&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0 || values.tmp_mathopt02==0)trial.InitMathProblem01]'&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem01&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01==1)&lt;br/&gt;{values.tmp_mathopt01=list.MathOpt01.nextvalue;&lt;br/&gt;values.tmp_mathsign=list.MathSign.nextvalue;&lt;br/&gt;values.tmp_mathopt02=list.MathOpt02.nextvalue;&lt;br/&gt;values.mathcorrect=list.MathCorrect.nextvalue;&lt;br/&gt;values.tmp_mathopt02sign=concat(values.tmp_mathsign, values.tmp_mathopt02);&lt;br/&gt;values.tmp_mathopt02sign=evaluate(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1)&lt;br/&gt;{values.tmp_mathopt02sign+=3;&lt;br/&gt;values.tmp_mathopt02=abs(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1 &amp;amp;&amp;amp; values.tmp_mathopt02sign&amp;gt;0)&lt;br/&gt;values.tmp_mathsign="+"]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem);&lt;br/&gt;values.mathtrueanswer=values.mathanswer]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="TRUE")trial.show_math]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="FALSE")trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;For trials that should present a *false* math answer,&lt;br/&gt;a randomly drawn integer ranging from -9 to +9 &lt;br/&gt;is added to the math problem's *true* result. &lt;br/&gt;The calculations contained in 'InitMathProblem02' ensure that &lt;br/&gt;this *false* answer is also greater than or equal to zero.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem02&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath02+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02==1)values.tmp_mathrand=list.MathRand.nextvalue]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02&amp;gt;1)values.tmp_mathrand+=2]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem)+values.tmp_mathrand]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathanswer!=values.mathtrueanswer)trial.show_math else trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;The following trials handle presentation of math problems&lt;br/&gt;and scoring of participants' responses.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;trial show_math&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01=0; values.tmp_initmath02=0;&lt;br/&gt;values.mathproblemcount+=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathProblemDisplay, TestMathPrompt, mathtimeout]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ timeout = values.mathtimeout+500&lt;br/&gt;/ ontrialend = [if(trial.show_math.response!="lbuttondown")&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathspeederrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ branch = [if(trial.show_math.response!="lbuttondown")trial.show_letter else trial.solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [if(trial.solve_math.correct==0)&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathaccerrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathAnswer, TRUE, FALSE, mathdebug]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (values.mathcorrect)&lt;br/&gt;/ branch = [trial.show_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;SCORING&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan"&amp;nbsp;scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial score_report&amp;gt;&lt;br/&gt;/ stimulusframes = [1=scorereport]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracLetter&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=white; text.MathScore.textcolor=white; values.stopblock=0]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracMath&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [values.mathaccuracy=0]&lt;br/&gt;/ onblockend = [values.mathtimeout=(2.5*trial.prac_show_math.totalsdlatency)+trial.prac_show_math.totalmeanlatency]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=prac_show_math]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block TestBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPERIMENT &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;expt AOSPAN&amp;gt;&lt;br/&gt;/ onexptbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ blocks = [1=InstrPracLetter; 2=PracLetter; 3=InstrPracMath; 4=PracMath; &lt;br/&gt;5=InstrPracBoth; 6=PracBoth; 7=InstrTestBoth; 8=TestBoth; 9=InstrFinal]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEBUG: On-Screen Debugging Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;These items are invisible by default. &lt;br/&gt;Enter 'debug' as subject id to enable them.&lt;br/&gt;&lt;br/&gt;&amp;lt;text currentsetsize&amp;gt;&lt;br/&gt;/ items = ("Setsize: &amp;lt;%values.currentsetsize%&amp;gt; / Lettercount: &amp;lt;%values.lettercount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text letterstrings&amp;gt;&lt;br/&gt;/ items = ("~tPresented Letters:~t&amp;lt;%item.PresentedLetters.item.1%&amp;gt;&amp;lt;%item.PresentedLetters.item.2%&amp;gt;&amp;lt;%item.PresentedLetters.item.3%&amp;gt;&amp;lt;%item.PresentedLetters.item.4%&amp;gt;&amp;lt;%item.PresentedLetters.item.5%&amp;gt;&amp;lt;%item.PresentedLetters.item.6%&amp;gt;&amp;lt;%item.PresentedLetters.item.7%&amp;gt;&amp;lt;%item.PresentedLetters.item.8%&amp;gt;&amp;lt;%item.PresentedLetters.item.9%&amp;gt;&amp;lt;%item.PresentedLetters.item.10%&amp;gt;&amp;lt;%item.PresentedLetters.item.11%&amp;gt;&amp;lt;%item.PresentedLetters.item.12%&amp;gt;&lt;br/&gt;~tRecalled Letters:~t&amp;lt;%item.RecalledLetters.item.1%&amp;gt;&amp;lt;%item.RecalledLetters.item.2%&amp;gt;&amp;lt;%item.RecalledLetters.item.3%&amp;gt;&amp;lt;%item.RecalledLetters.item.4%&amp;gt;&amp;lt;%item.RecalledLetters.item.5%&amp;gt;&amp;lt;%item.RecalledLetters.item.6%&amp;gt;&amp;lt;%item.RecalledLetters.item.7%&amp;gt;&amp;lt;%item.RecalledLetters.item.8%&amp;gt;&amp;lt;%item.RecalledLetters.item.9%&amp;gt;&amp;lt;%item.RecalledLetters.item.10%&amp;gt;&amp;lt;%item.RecalledLetters.item.11%&amp;gt;&amp;lt;%item.RecalledLetters.item.12%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (55%, 5%)&lt;br/&gt;/ position = (50%, 87%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathdebug&amp;gt;&lt;br/&gt;/ items = ("~tMath Problem:~t~t&amp;lt;% text.MathProblem.currentitem %&amp;gt;~r&lt;br/&gt;~tTrue Answer:~t~t&amp;lt;% values.mathtrueanswer %&amp;gt;~r&lt;br/&gt;~tPresented Answer:~t&amp;lt;% values.mathcorrect %&amp;gt;~r~r")&lt;br/&gt;/ size = (50%, 7%)&lt;br/&gt;/ halign = center&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ position = (45%, 70%)&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathtimeout&amp;gt;&lt;br/&gt;/ items = ("Timeout = &amp;lt;%values.mathtimeout%&amp;gt; ms~r&lt;br/&gt;Math Problem # &amp;lt;%values.mathproblemcount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 20%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scoredebug&amp;gt;&lt;br/&gt;/ items = ("OSPAN Score:~t~t&amp;lt;% values.ospan %&amp;gt;&lt;br/&gt;Total Number Correct:~t&amp;lt;% values.totalcorrectletters %&amp;gt;~r~r&lt;br/&gt;Math Errors (Total):~t&amp;lt;% values.mathtotalerrors %&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;% values.mathspeederrors %&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;% values.mathaccerrors %&amp;gt;~r~r")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 75%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;monkey AOSPAN&amp;gt;&lt;br/&gt;/ latencydistribution = normal(800, 200)&lt;br/&gt;/ percentcorrect = 100&lt;br/&gt;&amp;lt;/monkey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;End of File&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20792"&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; If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I &lt;br/&gt;&amp;gt; do that?&amp;nbsp;                			    							    &lt;br/&gt;&lt;br/&gt;Then you need to split things in several &amp;lt;trial&amp;gt;s: One that presents the equation and requires a mouse-click, followed by one that presents the response options and collects the color-response.&lt;br/&gt;&lt;br/&gt;I have no idea what the OSPAN code has to do with any of this.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20795"&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;I am trying to use the same OSPAN task for another experiment, but only the practice trials and instructions. I am having difficulty figuring out how to do that.</description><pubDate>Mon, 20 Feb 2017 08:03:24 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20795.aspx</link><description>&lt;div data-id="20792" class="if-quote-wrapper" unselectable="on" data-guid="1487604558887"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20792" 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="20792" 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="20792" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20792"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20789" class="if-quote-wrapper" unselectable="on" data-guid="1487604558887"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20789" 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="20789" 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="20789" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20789"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487604558887"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487604558887"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487604558887"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487604558887"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487604558887"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487604558887"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I do that?&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20789"&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;Here is the entire syntax for the operation span task.....&lt;br/&gt;&amp;lt;usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;Automated Operation Span Task (AOSPAN)&lt;br/&gt;SCRIPT INFO&lt;br/&gt;&lt;br/&gt;Main Inquisit programming: David Nitz (&lt;a href="mailto:dave@millisecond.com"&gt;dave@millisecond.com&lt;/a&gt;) for Millisecond Software, LLC.&lt;br/&gt;Additional Inquisit programming: Jerry Grenard (&lt;a href="mailto:grenard@ucla.edu"&gt;grenard@ucla.edu&lt;/a&gt;), Sean Draine (&lt;a href="mailto:seandr@millisecond.com"&gt;seandr@millisecond.com&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;last updated: 01-20-2016 by K.Borchert (&lt;a href="mailto:katjab@millisecond.com"&gt;katjab@millisecond.com&lt;/a&gt;) for Millisecond Software LLC&lt;br/&gt;&lt;br/&gt;Script Copyright © 01-20-2016 Millisecond Software&lt;br/&gt;Task Copyright © 2005 by Dr. Randall Engle (&lt;a href="http://psychology.gatech.edu/renglelab/)"&gt;&lt;a href="http://psychology.gatech.edu/renglelab/)"&gt;http://psychology.gatech.edu/renglelab/)&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;BACKGROUND INFO&lt;br/&gt;&lt;br/&gt;*Purpose*&lt;br/&gt;This script implements the Automated Operation Span Task (AOSPAN).&lt;br/&gt;&lt;br/&gt;Working Memory Span Tasks Reference:&lt;br/&gt;CONWAY, A.R.A., KANE, M.J.,BUNTING, M.F., D. ZACH HAMBRICK, D.Z., WILHELM, O., &amp;amp; ENGLE, R.W. (2005).&lt;br/&gt;Working memory span tasks: A methodological review and user’s guide. Psychonomic Bulletin &amp;amp; Review&lt;br/&gt;2005, 12 (5), 769-786.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  *Task*&lt;br/&gt;Participants are presented a visual sequences of letters ranging from 3-7 letters (default) that need to be recalled at the end.&lt;br/&gt;Each letter in the sequence in preceded by a math problem ("(8*2) - 8 = ?") followed by a proposed solution ("e.g. 9") &lt;br/&gt;and participants have to decide whether the proposed solution is correct or not. &lt;br/&gt;Letter recall is tested by asking participants to selecte letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;DATA FILE INFORMATION: &lt;br/&gt;The default data stored in the data files are:&lt;br/&gt;&lt;br/&gt;(1) Raw data file: 'AOSPAN_raw.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;build:Inquisit build&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;date, time, subject, group:date and time script was run with the current subject/groupnumber &lt;br/&gt;blockcode, blocknum:the name and number of the current block&lt;br/&gt;trialcode, trialnum: the name and number of the currently recorded trial&lt;br/&gt;(Note: not all trials that are run might record data; by default data is collected unless /recorddata = false is set for a particular trial/block) &lt;br/&gt;stimulusitem:the presented stimuli in order of trial presentation&lt;br/&gt;response:the participant's response&lt;br/&gt;correct:the correctness of the response (1 = correct; 0 = incorrect)&lt;br/&gt;latency: the response latency (in ms)&lt;br/&gt;/currentsetsize: the number of letters to recall for the current problem&lt;br/&gt;text.letters.currentitem: the currently presented letter&lt;br/&gt;/mathproblemcount: counts the number of math problems in a given block&lt;br/&gt;text.MathProblem.currentitem: the currently presented math problem&lt;br/&gt;/mathtrueanswer:the correct math answer&lt;br/&gt;/mathanswer:the math response given&lt;br/&gt;/mathcorrect:1 = correct math response; 0 = incorrect math response&lt;br/&gt;/matheaccuracy: percentage of correctly solved math problems within the current block&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/recalledletters: the number of letters recalled of the current problem&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/totalrecalledsets: the number of correctly recalled sets&lt;br/&gt;&lt;br/&gt;(2) Summary data file: 'AOSPAN_summary*.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;script.startdate:date script was run&lt;br/&gt;script.starttime:time script was started&lt;br/&gt;script.subjectid:subject id number&lt;br/&gt;script.groupid:group id number&lt;br/&gt;script.elapsedtime:time it took to run script (in ms)&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;/completed:0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;EXPERIMENTAL SET-UP&lt;br/&gt;1 Practice Session (default):&lt;br/&gt;a) Practice of recalling sequences of letters of set sizes 2-3 in ascending order (4 trials)&lt;br/&gt;b) Practice of math task (15 trials)&lt;br/&gt;c) Combined practice of recalling sequence of letters (set size 2 only) and math problem: each letter is &lt;br/&gt;preceded by a math problem (3 trials)&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Test Session (default):&lt;br/&gt;15 Trials (15 = 3 repetitions of 5 set sizes; order of set sizes is randomly determined): &lt;br/&gt;Recalling sequences of letters (set size 3-7): each letter is preceded by a math problem;&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Scoring:&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;STIMULI:&lt;br/&gt;Letters: T, L, Q, N, F, H, Y, S, P, K, R, J&lt;br/&gt;Math Problems (test): created on runtime; only math problems with a *true* result &amp;gt;= 0 are allowed in the task&lt;br/&gt;&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;see section Editable Instructions&lt;br/&gt;&lt;br/&gt;EDITABLE CODE:&lt;br/&gt;check below for (relatively) easily editable parameters, stimuli, instructions etc. &lt;br/&gt;Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.&lt;br/&gt;&lt;br/&gt;&amp;lt;/usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE STIMULI: change editable stimuli here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathProblem&amp;gt;&lt;br/&gt;/ 01 = "(1*2) + 1 = ?"&lt;br/&gt;/ 02 = "(1/1) - 1 = ?"&lt;br/&gt;/ 03 = "(7*3) - 3 = ?"&lt;br/&gt;/ 04 = "(4*3) + 4 = ?"&lt;br/&gt;/ 05 = "(3/3) + 2 = ?"&lt;br/&gt;/ 06 = "(2*6) - 4 = ?"&lt;br/&gt;/ 07 = "(8*9) - 8 = ?"&lt;br/&gt;/ 08 = "(4*5) - 5 = ?"&lt;br/&gt;/ 09 = "(4*2) + 6 = ?"&lt;br/&gt;/ 10 = "(4/4) + 7 = ?"&lt;br/&gt;/ 11 = "(8*2) - 8 = ?"&lt;br/&gt;/ 12 = "(2*9) - 9 = ?"&lt;br/&gt;/ 13 = "(8/2) + 9 = ?"&lt;br/&gt;/ 14 = "(3*8) - 1 = ?"&lt;br/&gt;/ 15 = "(6/3) + 1 = ?"&lt;br/&gt;/ 16 = "(9/3) - 2 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathAnswer&amp;gt;&lt;br/&gt;/ 01 = "3"&lt;br/&gt;/ 02 = "2"&lt;br/&gt;/ 03 = "18"&lt;br/&gt;/ 04 = "16"&lt;br/&gt;/ 05 = "1"&lt;br/&gt;/ 06 = "6"&lt;br/&gt;/ 07 = "64"&lt;br/&gt;/ 08 = "11"&lt;br/&gt;/ 09 = "14"&lt;br/&gt;/ 10 = "12"&lt;br/&gt;/ 11 = "2"&lt;br/&gt;/ 12 = "9"&lt;br/&gt;/ 13 = "7"&lt;br/&gt;/ 14 = "23"&lt;br/&gt;/ 15 = "3"&lt;br/&gt;/ 16 = "7"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE INSTRUCTIONS: change instructions here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;/ 1 = "In this experiment you will try to memorize letters you see on the screen &lt;br/&gt;while you also solve simple math problems.~r &lt;br/&gt;In the next few minutes, you will have some practice to get you familiar with how the experiment works.~r&lt;br/&gt;We will begin by practicing the letter part of the experiment.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin."&lt;br/&gt;/ 2 = "For this practice set, letters will appear on the screen one at a time.&lt;br/&gt;Try to remember each letter in the order presented.~r&lt;br/&gt;After a few sets, a recall screen will appear. Select the letters in the same order that you saw them. &lt;br/&gt;To do this, &amp;lt;%expressions.buttoninstruct2%&amp;gt;.~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 3 = "When you have selected all the letters, and they are in the correct order at the bottom of your screen,&lt;br/&gt;hit the EXIT box at the bottom right of the screen.~r&lt;br/&gt;If you make a mistake, hit the CLEAR box to start over.~r&lt;br/&gt;If you forget one of the letters, &amp;lt;%expressions.buttoninstruct3%&amp;gt; the BLANK box to mark the spot&lt;br/&gt;for the missing letter.~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to start the letter practice."&lt;br/&gt;/ 4 = "Now you will practice doing the math part of the experiment.~r~r&lt;br/&gt;A math problem will appear on the screen, like this:~r&lt;br/&gt;(2 * 1) + 1 = ?~r&lt;br/&gt;Once the equation is presented, you should compute the correct answer as quickly as you can. &lt;br/&gt;When you know the correct answer, you will &amp;lt;%expressions.buttoninstruct1%&amp;gt;.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 5 = "You will see a number displayed on the next screen,&lt;br/&gt;along with a box marked TRUE and a box marked FALSE.~r&lt;br/&gt;If the number on the screen is the correct answer to the math problem,&lt;br/&gt;&amp;lt;%expressions.buttoninstruct3%&amp;gt; on the TRUE box with the mouse.&lt;br/&gt;If the number is not the correct answer, &amp;lt;%expressions.buttoninstruct3%&amp;gt; on the FALSE box.~r&lt;br/&gt;After you &amp;lt;%expressions.buttoninstruct3%&amp;gt; on one of the boxes,&lt;br/&gt;the computer will tell you if you made the right choice.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 6 = "It is VERY important that you get the math problems correct.&lt;br/&gt;It is also important that you try and solve the problem as quickly as you can.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 7 = "Now you will practice doing both parts of the experiment at the same time.~r~r&lt;br/&gt;You will be given one of the math problems and make your decision about the answer. &lt;br/&gt;Then, a letter will appear on the screen. Try and remember the letter.~r&lt;br/&gt;The computer will automatically move you onto the next letter part, if you do not answer fast enough.&lt;br/&gt;Skipping the True or False part will count that problem as a math error.~r&lt;br/&gt;Therefore it is VERY important to solve the problems&lt;br/&gt;as quickly and as accurately as possible.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 8 = "At the end of each set of letters and math problems, a recall screen will appear.&lt;br/&gt;Use the mouse to select the letters in the same order that you saw them. &lt;br/&gt;It is important to work QUICKLY and ACCURATELY on the math.&lt;br/&gt;After the recall screen, you will be given feedback about your performance&lt;br/&gt;regarding both the number of letters recalled and the percent correct on&lt;br/&gt;the math problems.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 9 = "During the feedback, you will see a number in red in the top right of the screen.&lt;br/&gt;This indicates your percent correct for the math problems&lt;br/&gt;for the entire experiment.~r&lt;br/&gt;It is VERY important for you to keep this at least at 85%.&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 10 = "That is the end of the practice.~r~r&lt;br/&gt;The real trials will look like the practice trials you just completed.&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;If not, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin the experiment."&lt;br/&gt;/ 11 = "Thank you for your participation."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scorereport&amp;gt;&lt;br/&gt;/ items = ("~tResults for Subject #&amp;lt;%script.subjectid%&amp;gt;~r~r&lt;br/&gt;OSPAN Absolute Score:~t&amp;lt;%values.ospan%&amp;gt;&lt;br/&gt;OSPAN Total Correct:~t&amp;lt;%values.totalcorrectletters%&amp;gt;~r~r&lt;br/&gt;Math Total Errors:~t&amp;lt;%values.mathtotalerrors%&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;%values.mathspeederrors%&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;%values.mathaccerrors%&amp;gt;~r~r")&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (52%, 50%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;****************************************************************************************************&lt;br/&gt;general instruction expressions: adjust the instruction text depending on device used to run script&lt;br/&gt;****************************************************************************************************&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/buttoninstruct1 = if (computer.touch) {"tap the screen";} else {"click the mouse button";}&lt;br/&gt;/buttoninstruct2 = if (computer.touch) {"tap the letters you want to select";} else {"use the mouse to select each letter";}&lt;br/&gt;/buttoninstruct3 = if (computer.touch) {"tap";} else {"click";}&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE LISTS: change editable lists here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Adjustable Task Lists:&lt;br/&gt;The following list elements contain the set sizes used for the different study phases. &lt;br/&gt;The set sizes determine how many letters the participant has to remember&lt;br/&gt;as well as the number of math problems she/he has to solve intermittently.&lt;br/&gt;The task can be extended by modifying these values. The script can handle a maximum &lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,3,3)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;list PracBothSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,2)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestBothSetSize&amp;gt;&lt;br/&gt;/ items = (3,3,3,4,4,4,5,5,5,6,6,6,7,7,7)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;!!!REMAINING CODE: Customize after careful consideration only!!!&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEFAULTS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;script requires Inquisit 5.0.0.0 or higher&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ canvassize = (100%,100%)&lt;br/&gt;/ canvasaspectratio = (4,3)&lt;br/&gt;/ screencolor = white&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ txbgcolor = transparent&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ minimumversion = "5.0.0.0"&lt;br/&gt;/ halign = center&lt;br/&gt;/ valign = center&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DATA&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: data file explanations under User Manual Information at the top&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;raw data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, date, time, subject, group, blockcode, blocknum, trialcode, trialnum, latency, response, correct,&lt;br/&gt;values.currentsetsize, text.letters.currentitem, values.mathproblemcount, &lt;br/&gt;text.MathProblem.currentitem, values.mathtrueanswer, values.mathanswer, &lt;br/&gt;values.mathcorrect, values.mathaccuracy, values.mathtotalerrors, values.mathaccerrors, &lt;br/&gt;values.mathspeederrors, values.mathtimeout, values.recalledletters, &lt;br/&gt;values.totalcorrectletters, values.totalrecalledsets, values.ospan)&lt;br/&gt;/ labels = true&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;summary data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/ columns = (script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime, computer.platform, values.completed, &lt;br/&gt;values.ospan, &lt;br/&gt;values.totalcorrectletters, values.mathtotalerrors, values.mathspeederrors, &lt;br/&gt;values.mathaccerrors)&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/summarydata&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;VALUES: automatically updated&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/completed:0 = script was not completed; 1 = script was completed (all conditions run)&lt;br/&gt;&lt;br/&gt;&amp;lt;values AOSPAN&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;/ stopblock=0&lt;br/&gt;/ learninginterval=1000&lt;br/&gt;/ currentsetsize=0&lt;br/&gt;/ lettercount=0&lt;br/&gt;/ correctletters=0&lt;br/&gt;/ totalcorrectletters=0&lt;br/&gt;/ ospan=0&lt;br/&gt;/ totalrecalledsets=0&lt;br/&gt;/ recalledletters=""&lt;br/&gt;/ recallcount=0&lt;br/&gt;/ recalldelay=0&lt;br/&gt;/ mathaccuracy=0&lt;br/&gt;/ mathaccerrors=0&lt;br/&gt;/ mathcurrenterrors=0&lt;br/&gt;/ mathtotalerrors=0&lt;br/&gt;/ mathspeederrors=0&lt;br/&gt;/ mathtimeout=5000&lt;br/&gt;/ mathproblemcount=0&lt;br/&gt;/ matherrorswitch=1&lt;br/&gt;/ mathcorrect=""&lt;br/&gt;/ tmp_mathopt01=""&lt;br/&gt;/ tmp_mathopt02=0&lt;br/&gt;/ tmp_mathsign=""&lt;br/&gt;/ tmp_mathopt02sign=""&lt;br/&gt;/ mathtrueanswer=0&lt;br/&gt;/ tmp_mathrand=0&lt;br/&gt;/ mathanswer=0&lt;br/&gt;/ tmp_initmath01=0&lt;br/&gt;/ tmp_initmath02=0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPRESSIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Letter String Generation is handled by two list elements:&lt;br/&gt;PracLetterList and TestLetterList.&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth) use random selection &lt;br/&gt;without replacement for each sequence.&lt;br/&gt;Switching between lists according to current study phase&lt;br/&gt;is handled dynamically by 'expressions.selectionmode'.&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions AOSPAN&amp;gt;&lt;br/&gt;/ selectionmode = if(script.currentblock=="PracLetter")PracLetterList else TestLetterList&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracLetter&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracMath&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracBoth&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrTestBoth&amp;gt;&lt;br/&gt;/ trials = [1=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrFinal&amp;gt;&lt;br/&gt;/ trials = [1=instructions; 2=score_report]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instructions&amp;gt;&lt;br/&gt;/ pretrialpause = 250&lt;br/&gt;/ posttrialpause = 250&lt;br/&gt;/ stimulustimes = [1=instructions]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ responsetime = 2000&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text instructions&amp;gt;&lt;br/&gt;/ items = instructions&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (90%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The Letter Sequence Generation is handled dynamically by 'expressions.selectionmode':&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and Letter-Math Test (Block TestBoth)&lt;br/&gt;use random selection without replacement for each sequence.&lt;br/&gt;&lt;br/&gt;&amp;lt;text Letters&amp;gt;&lt;br/&gt;/ items = ("F","P","Q","J","H","K","T","S","N","R","Y","L")&lt;br/&gt;/ fontstyle = ("Arial", 5.0%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select =  expressions.selectionmode&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Empty Item Elements for Storing Presented and Recalled Letter Sequences&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PresentedLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item RecalledLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Screen Layout Elements for the Letter Recall Grid&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text F&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text H&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text J&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text K&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text L&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text N&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text P&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Q&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text R&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text S&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text T&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Y&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text _&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text exit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickF&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickH&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickJ&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickK&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickL&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickN&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickP&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickQ&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickR&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickS&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickT&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickY&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text click_&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickclear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickexit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recalledletters&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.recalledletters%&amp;gt;")&lt;br/&gt;/ position = (50%, 80%)&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recallprompt&amp;gt;&lt;br/&gt;/ items = ("Select the letters in the order presented. Use the blank button to fill in forgotten items.")&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;/ size = (95%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text LetterFeedback&amp;gt;&lt;br/&gt;/ items = ("You recalled &amp;lt;%values.correctletters%&amp;gt; out of &amp;lt;%values.lettercount%&amp;gt; letters correctly.")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Practice Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems are hardcoded only for the Math Practice Phase (Block PracMath).&lt;br/&gt;For all other Study Phases (Block PracBoth &amp;amp; Block TestBoth) &lt;br/&gt;the Math Problems are generated dynamically.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;text PracMathProblem&amp;gt;&lt;br/&gt;/ items = PracMathProblem&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select = PracMathList&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathAnswer&amp;gt;&lt;br/&gt;/ items = PracMathAnswer&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = false&lt;br/&gt;/ select = current(PracMathProblem)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathFeedback&amp;gt;&lt;br/&gt;/ items = ("You were correct on &amp;lt;%trial.prac_solve_math.totalcorrectcount%&amp;gt; of &amp;lt;%list.PracMathList.itemcount%&amp;gt; math trials.&lt;br/&gt;That is &amp;lt;%trial.prac_solve_math.totalpercentcorrect%&amp;gt; percent correct.~r~r~r&lt;br/&gt;Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (65%, 50%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Text and Layout Items used for the Math Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblemDisplay&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathProblem.currentitem%&amp;gt; = ?")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblem&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.tmp_mathopt01%&amp;gt; &amp;lt;%values.tmp_mathsign%&amp;gt; &amp;lt;%values.tmp_mathopt02%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathCorrect&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathCorrect.selectedvalue%&amp;gt;")&lt;br/&gt;/ select =  noreplace&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 60%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathAnswer&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathanswer%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathScore&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathaccuracy%&amp;gt;%")&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ position = (85%, 15%)&lt;br/&gt;/ size = (10%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathFeedback&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"You made &amp;lt;%values.mathcurrenterrors%&amp;gt; math error(s) on this set of trials.",&lt;br/&gt;"You have made a total of 3 or more math errors during this set of trials. Please do your best on the math.")&lt;br/&gt;/ select =  values.matherrorswitch&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (80%, 30%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TRUE&amp;gt;&lt;br/&gt;/ items = ("TRUE")&lt;br/&gt;/ position = (31%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FALSE&amp;gt;&lt;br/&gt;/ items = ("FALSE")&lt;br/&gt;/ position = (69%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TestMathPrompt&amp;gt;&lt;br/&gt;/ items = ("Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathPrompt&amp;gt;&lt;br/&gt;/ items = ("When you have solved the math problem,~nclick the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text correcttext&amp;gt;&lt;br/&gt;/ items = ("Correct")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text incorrecttext&amp;gt;&lt;br/&gt;/ items = ("Incorrect")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: General Purpose Screen Layout Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;shape GrayFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = silver&lt;br/&gt;/ size = (78.3%, 78%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape BlackFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape WhiteScreen&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;LISTS:&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Item Selection&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;Beware: Item Selection differs between the task's Practice and Test Phases!&lt;br/&gt;Generally, the single-task practice phases (Blocks PracLetter &amp;amp; PracMath) rely on &lt;br/&gt;sequential item selection. The phases involving both tasks &lt;br/&gt;(Blocks PracBoth &amp;amp; TestBoth) use random selection without replacement.&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;/ selectionmode =  sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Math&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "FALSE", "TRUE", "TRUE", "FALSE", "FALSE", "TRUE", "FALSE", &lt;br/&gt;"TRUE", "FALSE", "FALSE", "TRUE", "FALSE", "TRUE", "TRUE", "FALSE")&lt;br/&gt;/ selectionmode =  text.PracMathProblem.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Test Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Generating the math problem has 4 steps&lt;br/&gt;1. Selection of the first operation, MathOpt01: "(9/3)"&lt;br/&gt;2. Selection of the second operation, MathOpt012: "- 2"&lt;br/&gt;3. Selection of whether the answer presented to subjects should be true or false, MathCorrect: "TRUE" or "FALSE"&lt;br/&gt;4. A random number added to the correct answer to make it false, MathRand: "3"&lt;br/&gt;&lt;br/&gt;Additional Math Operations &lt;br/&gt;(add to List 'MathOpt01'):&lt;br/&gt;"(4*4)", "(2*8)", "(9*2)", "(6*3)", "(3*6)", "(2*9)", "(5*4)", "(4*5)", &lt;br/&gt;"(7*3)", "(3*7)", "(8*3)", "(6*4)", "(4*6)", "(3*8)", "(5*5)", "(9*3)",&lt;br/&gt;"(3*9)", "(7*4)", "(4*7)", "(6*5)", "(5*6)", "(8*4)", "(4*8)", "(7*5)", &lt;br/&gt;"(5*7)", "(9*4)", "(6*6)", "(4*9)", "(8*5)", "(5*8)", "(7*6)", "(6*7)",&lt;br/&gt;"(9*5)", "(5*9)", "(8*6)", "(6*8)", "(7*7)", "(9*6)", "(6*9)", "(8*7)",&lt;br/&gt;"(7*8)", "(9*7)", "(7*9)", "(8*8)", "(9*8)", "(8*9)", "(9*9)"&lt;br/&gt;&lt;br/&gt;Difficulties for Additional Operations &lt;br/&gt;(add to List 'MathDifficulty'):&lt;br/&gt;"2", "2", "2", "2", "2", "2", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "4", "4", "4", "4", &lt;br/&gt;"4", "4", "4", "4", "4", "4", "4", "4",&lt;br/&gt;"4", "4", "4", "4", "4", "4", "4"&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt01&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"(1/1)", "(2/1)", "(2/2)", "(3/1)", "(3/3)", "(4/1)", "(4/2)", "(4/4)", &lt;br/&gt;"(5/1)", "(5/5)", "(6/1)", "(6/2)", "(6/3)", "(6/6)", "(7/1)", "(7/7)",&lt;br/&gt;"(8/1)", "(8/2)", "(8/4)", "(8/8)", "(9/1)", "(9/3)", "(9/9)", "(1*2)", &lt;br/&gt;"(1*3)", "(2*2)", "(1*4)", "(1*5)", "(3*2)", "(2*3)", "(1*6)", "(1*7)", &lt;br/&gt;"(4*2)", "(2*4)", "(1*8)", "(3*3)", "(1*9)", "(5*2)", "(2*5)", "(6*2)", &lt;br/&gt;"(4*3)", "(3*4)", "(2*6)", "(7*2)", "(2*7)", "(5*3)", "(3*5)", "(8*2)")&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathDifficulty&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "2", "2", "2", &lt;br/&gt;"2", "2", "2", "2", "2", "2", "2", "2")&lt;br/&gt;/ selectionmode =  list.MathOpt01.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt02&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathSign&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"+", "+", "+", "+", "+", "+", "+", "+", "+", &lt;br/&gt;"-", "-", "-", "-", "-", "-", "-", "-", "-")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Alternate MathCorrect List Logic&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;/ selectionmode =  list.MathOpt02)&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathRand&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Initialization Trial for the Different Study Phases&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitSetSize&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.currentsetsize=0; values.lettercount=0; values.correctletters=0; &lt;br/&gt;values.recallcount=0; values.recalledletters=""]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracLetter")&lt;br/&gt;{values.currentsetsize=list.PracLetterSetSize.nextvalue}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracBoth")&lt;br/&gt;{values.currentsetsize=list.PracBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="TestBoth")&lt;br/&gt;{values.currentsetsize=list.TestBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialend = [clear(item.PresentedLetters); clear(item.RecalledLetters)]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial show_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.lettercount+=1]&lt;br/&gt;/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, currentsetsize]&lt;br/&gt;/ trialduration = values.learninginterval&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial recall_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.recallcount+=1]&lt;br/&gt;/ ontrialbegin = [if(values.recallcount==1)values.recalldelay=500 else values.recalldelay=0]&lt;br/&gt;/ pretrialpause = values.recalldelay&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit, recalledletters, recallprompt, letterstrings]&lt;br/&gt;/ validresponse = (F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit)&lt;br/&gt;/ monkeyresponse = ("F", "H", "J", "K", "exit")&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response!="exit" &amp;amp;&amp;amp; trial.recall_letter.response!="clear")&lt;br/&gt;{item.RecalledLetters.item=trial.recall_letter.response; values.recalledletters=concat(values.recalledletters, trial.recall_letter.response)}]&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response=="clear")&lt;br/&gt;{clear(item.RecalledLetters); values.recalledletters=""}]&lt;br/&gt;/ responsemessage = (F, clickF, 150)&lt;br/&gt;/ responsemessage = (H, clickH, 150)&lt;br/&gt;/ responsemessage = (J, clickJ, 150)&lt;br/&gt;/ responsemessage = (K, clickK, 150)&lt;br/&gt;/ responsemessage = (L, clickL, 150)&lt;br/&gt;/ responsemessage = (N, clickN, 150)&lt;br/&gt;/ responsemessage = (P, clickP, 150)&lt;br/&gt;/ responsemessage = (Q, clickQ, 150)&lt;br/&gt;/ responsemessage = (R, clickR, 150)&lt;br/&gt;/ responsemessage = (S, clickS, 150)&lt;br/&gt;/ responsemessage = (T, clickT, 150)&lt;br/&gt;/ responsemessage = (Y, clickY, 150)&lt;br/&gt;/ responsemessage = (clear, clickclear, 150)&lt;br/&gt;/ responsemessage = (exit, clickexit, 150)&lt;br/&gt;/ responsemessage = (_, click_, 150)&lt;br/&gt;/ branch = [if(trial.recall_letter.response=="exit")trial.letter_feedback else trial.recall_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Recall Feedback:&lt;br/&gt;In this trial, the presented letter sequenceis compared &lt;br/&gt;to the letter string the participant has entered. &lt;br/&gt;Feedback is given accordingly. &lt;br/&gt;This trial also handles reporting of math performance&lt;br/&gt;for Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth).&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial letter_feedback&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ ontrialbegin = [values.correctletters=0]&lt;br/&gt;/ ontrialbegin = [if(values.mathcurrenterrors&amp;gt;=3)values.matherrorswitch=2 else values.matherrorswitch=1]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if(item.RecalledLetters.item.1 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.1==item.RecalledLetters.item.1)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.2 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.2==item.RecalledLetters.item.2)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.3 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.3==item.RecalledLetters.item.3)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.4 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.4==item.RecalledLetters.item.4)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.5 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.5==item.RecalledLetters.item.5)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.6 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.6==item.RecalledLetters.item.6)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.7 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.7==item.RecalledLetters.item.7)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.8 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.8==item.RecalledLetters.item.8)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.9 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.9==item.RecalledLetters.item.9)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.10 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.10==item.RecalledLetters.item.10)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.11 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.11==item.RecalledLetters.item.11)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.12 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.12==item.RecalledLetters.item.12)values.correctletters+=1]&lt;br/&gt;/ ontrialbegin = [if(values.correctletters==values.currentsetsize)&lt;br/&gt;{values.ospan=values.ospan+values.correctletters; values.totalrecalledsets+=1}]&lt;br/&gt;/ ontrialbegin = [values.totalcorrectletters=values.totalcorrectletters+values.correctletters]&lt;br/&gt;/ ontrialend = [values.mathcurrenterrors=0]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracLetter" &amp;amp;&amp;amp; list.PracLetterSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracBoth" &amp;amp;&amp;amp; list.PracBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="TestBoth" &amp;amp;&amp;amp; list.TestBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, LetterFeedback, MathFeedback, MathScore, scoredebug]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.InitSetSize]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_show_math&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathProblem, PracMathPrompt]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ branch = [trial.prac_solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathAnswer, TRUE, FALSE]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (list.PracMathCorrect.nextvalue)&lt;br/&gt;/ responsemessage = (anyresponse, PracMathAnswer, 800)&lt;br/&gt;/ correctmessage = true(correcttext, 800)&lt;br/&gt;/ errormessage = true(incorrecttext, 800)&lt;br/&gt;/ branch = [if(trial.prac_show_math.trialcount &amp;gt;= list.PracMathList.itemcount)&lt;br/&gt;trial.prac_math_feedback else trial.prac_show_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_math_feedback&amp;gt;&lt;br/&gt;/ ontrialend = [values.stopblock=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, PracMathFeedback]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter-Math Practice &amp;amp; Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Setting up Math Problems:&lt;br/&gt;&lt;br/&gt;'InitMathProblem01' and 'InitMathProblem02'&lt;br/&gt;are used to set up and check the randomly &lt;br/&gt;generated math problems used for&lt;br/&gt;Letter-Math Practice (Block 'PracBoth') and &lt;br/&gt;Letter-Math Test (Block 'TestBoth'). &lt;br/&gt;Only math problems with a *true* result &lt;br/&gt;greater than or equal to zero are allowed in the task. &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The calculations contained in trial 'InitMathProblem01' &lt;br/&gt;ensure that the participant is given a math problem &lt;br/&gt;with a *true* result greater than or equal to zero.&lt;br/&gt;The adjustments may cause MathOpt02 to become zero.&lt;br/&gt;This *does* happen in the original version of the task programmed&lt;br/&gt;in E-Prime.To avoid MathOpt02=0 exchange&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]' with&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0 || values.tmp_mathopt02==0)trial.InitMathProblem01]'&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem01&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01==1)&lt;br/&gt;{values.tmp_mathopt01=list.MathOpt01.nextvalue;&lt;br/&gt;values.tmp_mathsign=list.MathSign.nextvalue;&lt;br/&gt;values.tmp_mathopt02=list.MathOpt02.nextvalue;&lt;br/&gt;values.mathcorrect=list.MathCorrect.nextvalue;&lt;br/&gt;values.tmp_mathopt02sign=concat(values.tmp_mathsign, values.tmp_mathopt02);&lt;br/&gt;values.tmp_mathopt02sign=evaluate(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1)&lt;br/&gt;{values.tmp_mathopt02sign+=3;&lt;br/&gt;values.tmp_mathopt02=abs(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1 &amp;amp;&amp;amp; values.tmp_mathopt02sign&amp;gt;0)&lt;br/&gt;values.tmp_mathsign="+"]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem);&lt;br/&gt;values.mathtrueanswer=values.mathanswer]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="TRUE")trial.show_math]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="FALSE")trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;For trials that should present a *false* math answer,&lt;br/&gt;a randomly drawn integer ranging from -9 to +9 &lt;br/&gt;is added to the math problem's *true* result. &lt;br/&gt;The calculations contained in 'InitMathProblem02' ensure that &lt;br/&gt;this *false* answer is also greater than or equal to zero.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem02&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath02+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02==1)values.tmp_mathrand=list.MathRand.nextvalue]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02&amp;gt;1)values.tmp_mathrand+=2]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem)+values.tmp_mathrand]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathanswer!=values.mathtrueanswer)trial.show_math else trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;The following trials handle presentation of math problems&lt;br/&gt;and scoring of participants' responses.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;trial show_math&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01=0; values.tmp_initmath02=0;&lt;br/&gt;values.mathproblemcount+=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathProblemDisplay, TestMathPrompt, mathtimeout]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ timeout = values.mathtimeout+500&lt;br/&gt;/ ontrialend = [if(trial.show_math.response!="lbuttondown")&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathspeederrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ branch = [if(trial.show_math.response!="lbuttondown")trial.show_letter else trial.solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [if(trial.solve_math.correct==0)&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathaccerrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathAnswer, TRUE, FALSE, mathdebug]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (values.mathcorrect)&lt;br/&gt;/ branch = [trial.show_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;SCORING&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan"&amp;nbsp;scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial score_report&amp;gt;&lt;br/&gt;/ stimulusframes = [1=scorereport]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracLetter&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=white; text.MathScore.textcolor=white; values.stopblock=0]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracMath&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [values.mathaccuracy=0]&lt;br/&gt;/ onblockend = [values.mathtimeout=(2.5*trial.prac_show_math.totalsdlatency)+trial.prac_show_math.totalmeanlatency]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=prac_show_math]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block TestBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPERIMENT &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;expt AOSPAN&amp;gt;&lt;br/&gt;/ onexptbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ blocks = [1=InstrPracLetter; 2=PracLetter; 3=InstrPracMath; 4=PracMath; &lt;br/&gt;5=InstrPracBoth; 6=PracBoth; 7=InstrTestBoth; 8=TestBoth; 9=InstrFinal]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEBUG: On-Screen Debugging Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;These items are invisible by default. &lt;br/&gt;Enter 'debug' as subject id to enable them.&lt;br/&gt;&lt;br/&gt;&amp;lt;text currentsetsize&amp;gt;&lt;br/&gt;/ items = ("Setsize: &amp;lt;%values.currentsetsize%&amp;gt; / Lettercount: &amp;lt;%values.lettercount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text letterstrings&amp;gt;&lt;br/&gt;/ items = ("~tPresented Letters:~t&amp;lt;%item.PresentedLetters.item.1%&amp;gt;&amp;lt;%item.PresentedLetters.item.2%&amp;gt;&amp;lt;%item.PresentedLetters.item.3%&amp;gt;&amp;lt;%item.PresentedLetters.item.4%&amp;gt;&amp;lt;%item.PresentedLetters.item.5%&amp;gt;&amp;lt;%item.PresentedLetters.item.6%&amp;gt;&amp;lt;%item.PresentedLetters.item.7%&amp;gt;&amp;lt;%item.PresentedLetters.item.8%&amp;gt;&amp;lt;%item.PresentedLetters.item.9%&amp;gt;&amp;lt;%item.PresentedLetters.item.10%&amp;gt;&amp;lt;%item.PresentedLetters.item.11%&amp;gt;&amp;lt;%item.PresentedLetters.item.12%&amp;gt;&lt;br/&gt;~tRecalled Letters:~t&amp;lt;%item.RecalledLetters.item.1%&amp;gt;&amp;lt;%item.RecalledLetters.item.2%&amp;gt;&amp;lt;%item.RecalledLetters.item.3%&amp;gt;&amp;lt;%item.RecalledLetters.item.4%&amp;gt;&amp;lt;%item.RecalledLetters.item.5%&amp;gt;&amp;lt;%item.RecalledLetters.item.6%&amp;gt;&amp;lt;%item.RecalledLetters.item.7%&amp;gt;&amp;lt;%item.RecalledLetters.item.8%&amp;gt;&amp;lt;%item.RecalledLetters.item.9%&amp;gt;&amp;lt;%item.RecalledLetters.item.10%&amp;gt;&amp;lt;%item.RecalledLetters.item.11%&amp;gt;&amp;lt;%item.RecalledLetters.item.12%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (55%, 5%)&lt;br/&gt;/ position = (50%, 87%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathdebug&amp;gt;&lt;br/&gt;/ items = ("~tMath Problem:~t~t&amp;lt;% text.MathProblem.currentitem %&amp;gt;~r&lt;br/&gt;~tTrue Answer:~t~t&amp;lt;% values.mathtrueanswer %&amp;gt;~r&lt;br/&gt;~tPresented Answer:~t&amp;lt;% values.mathcorrect %&amp;gt;~r~r")&lt;br/&gt;/ size = (50%, 7%)&lt;br/&gt;/ halign = center&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ position = (45%, 70%)&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathtimeout&amp;gt;&lt;br/&gt;/ items = ("Timeout = &amp;lt;%values.mathtimeout%&amp;gt; ms~r&lt;br/&gt;Math Problem # &amp;lt;%values.mathproblemcount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 20%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scoredebug&amp;gt;&lt;br/&gt;/ items = ("OSPAN Score:~t~t&amp;lt;% values.ospan %&amp;gt;&lt;br/&gt;Total Number Correct:~t&amp;lt;% values.totalcorrectletters %&amp;gt;~r~r&lt;br/&gt;Math Errors (Total):~t&amp;lt;% values.mathtotalerrors %&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;% values.mathspeederrors %&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;% values.mathaccerrors %&amp;gt;~r~r")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 75%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;monkey AOSPAN&amp;gt;&lt;br/&gt;/ latencydistribution = normal(800, 200)&lt;br/&gt;/ percentcorrect = 100&lt;br/&gt;&amp;lt;/monkey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;End of File&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20792"&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; If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I &lt;br/&gt;&amp;gt; do that?&amp;nbsp;                			    							    &lt;br/&gt;&lt;br/&gt;Then you need to split things in several &amp;lt;trial&amp;gt;s: One that presents the equation and requires a mouse-click, followed by one that presents the response options and collects the color-response.&lt;br/&gt;&lt;br/&gt;I have no idea what the OSPAN code has to do with any of this.&lt;br/&gt;</description><pubDate>Mon, 20 Feb 2017 07:31:30 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20792.aspx</link><description>&lt;div data-id="20789" class="if-quote-wrapper" unselectable="on" data-guid="1487602315571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20789" 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="20789" 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="20789" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 20, 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-20789"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487602315571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487602315571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487602315571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487602315571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487602315571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487602315571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I do that?&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20789"&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;Here is the entire syntax for the operation span task.....&lt;br/&gt;&amp;lt;usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;Automated Operation Span Task (AOSPAN)&lt;br/&gt;SCRIPT INFO&lt;br/&gt;&lt;br/&gt;Main Inquisit programming: David Nitz (&lt;a href="mailto:dave@millisecond.com"&gt;dave@millisecond.com&lt;/a&gt;) for Millisecond Software, LLC.&lt;br/&gt;Additional Inquisit programming: Jerry Grenard (&lt;a href="mailto:grenard@ucla.edu"&gt;grenard@ucla.edu&lt;/a&gt;), Sean Draine (&lt;a href="mailto:seandr@millisecond.com"&gt;seandr@millisecond.com&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;last updated: 01-20-2016 by K.Borchert (&lt;a href="mailto:katjab@millisecond.com"&gt;katjab@millisecond.com&lt;/a&gt;) for Millisecond Software LLC&lt;br/&gt;&lt;br/&gt;Script Copyright © 01-20-2016 Millisecond Software&lt;br/&gt;Task Copyright © 2005 by Dr. Randall Engle (&lt;a href="http://psychology.gatech.edu/renglelab/)"&gt;http://psychology.gatech.edu/renglelab/)&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;BACKGROUND INFO&lt;br/&gt;&lt;br/&gt;*Purpose*&lt;br/&gt;This script implements the Automated Operation Span Task (AOSPAN).&lt;br/&gt;&lt;br/&gt;Working Memory Span Tasks Reference:&lt;br/&gt;CONWAY, A.R.A., KANE, M.J.,BUNTING, M.F., D. ZACH HAMBRICK, D.Z., WILHELM, O., &amp;amp; ENGLE, R.W. (2005).&lt;br/&gt;Working memory span tasks: A methodological review and user’s guide. Psychonomic Bulletin &amp;amp; Review&lt;br/&gt;2005, 12 (5), 769-786.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  *Task*&lt;br/&gt;Participants are presented a visual sequences of letters ranging from 3-7 letters (default) that need to be recalled at the end.&lt;br/&gt;Each letter in the sequence in preceded by a math problem ("(8*2) - 8 = ?") followed by a proposed solution ("e.g. 9") &lt;br/&gt;and participants have to decide whether the proposed solution is correct or not. &lt;br/&gt;Letter recall is tested by asking participants to selecte letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;DATA FILE INFORMATION: &lt;br/&gt;The default data stored in the data files are:&lt;br/&gt;&lt;br/&gt;(1) Raw data file: 'AOSPAN_raw.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;build:Inquisit build&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;date, time, subject, group:date and time script was run with the current subject/groupnumber &lt;br/&gt;blockcode, blocknum:the name and number of the current block&lt;br/&gt;trialcode, trialnum: the name and number of the currently recorded trial&lt;br/&gt;(Note: not all trials that are run might record data; by default data is collected unless /recorddata = false is set for a particular trial/block) &lt;br/&gt;stimulusitem:the presented stimuli in order of trial presentation&lt;br/&gt;response:the participant's response&lt;br/&gt;correct:the correctness of the response (1 = correct; 0 = incorrect)&lt;br/&gt;latency: the response latency (in ms)&lt;br/&gt;/currentsetsize: the number of letters to recall for the current problem&lt;br/&gt;text.letters.currentitem: the currently presented letter&lt;br/&gt;/mathproblemcount: counts the number of math problems in a given block&lt;br/&gt;text.MathProblem.currentitem: the currently presented math problem&lt;br/&gt;/mathtrueanswer:the correct math answer&lt;br/&gt;/mathanswer:the math response given&lt;br/&gt;/mathcorrect:1 = correct math response; 0 = incorrect math response&lt;br/&gt;/matheaccuracy: percentage of correctly solved math problems within the current block&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/recalledletters: the number of letters recalled of the current problem&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/totalrecalledsets: the number of correctly recalled sets&lt;br/&gt;&lt;br/&gt;(2) Summary data file: 'AOSPAN_summary*.iqdat' (a separate file for each participant)&lt;br/&gt;&lt;br/&gt;script.startdate:date script was run&lt;br/&gt;script.starttime:time script was started&lt;br/&gt;script.subjectid:subject id number&lt;br/&gt;script.groupid:group id number&lt;br/&gt;script.elapsedtime:time it took to run script (in ms)&lt;br/&gt;computer.platform:the platform the script was run on&lt;br/&gt;/completed:0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;/mathtotalerrors: counts number of any errors (speed or accuracy) made during math problems within the current block&lt;br/&gt;/mathaccerrors: counts the number of incorrectly solved math problems within the current block&lt;br/&gt;/mathspeederrors: counts the number of times participant ran out of time when solving the math problems within the current block&lt;br/&gt;/ospan:The OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;/totalcorrectletters: the total number of letters recalled in the correct position.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;EXPERIMENTAL SET-UP&lt;br/&gt;1 Practice Session (default):&lt;br/&gt;a) Practice of recalling sequences of letters of set sizes 2-3 in ascending order (4 trials)&lt;br/&gt;b) Practice of math task (15 trials)&lt;br/&gt;c) Combined practice of recalling sequence of letters (set size 2 only) and math problem: each letter is &lt;br/&gt;preceded by a math problem (3 trials)&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Test Session (default):&lt;br/&gt;15 Trials (15 = 3 repetitions of 5 set sizes; order of set sizes is randomly determined): &lt;br/&gt;Recalling sequences of letters (set size 3-7): each letter is preceded by a math problem;&lt;br/&gt;Letter recall is done by picking out letters from a provided letter matrix.&lt;br/&gt;&lt;br/&gt;Scoring:&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan" scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;STIMULI:&lt;br/&gt;Letters: T, L, Q, N, F, H, Y, S, P, K, R, J&lt;br/&gt;Math Problems (test): created on runtime; only math problems with a *true* result &amp;gt;= 0 are allowed in the task&lt;br/&gt;&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;see section Editable Instructions&lt;br/&gt;&lt;br/&gt;EDITABLE CODE:&lt;br/&gt;check below for (relatively) easily editable parameters, stimuli, instructions etc. &lt;br/&gt;Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.&lt;br/&gt;&lt;br/&gt;&amp;lt;/usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE STIMULI: change editable stimuli here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathProblem&amp;gt;&lt;br/&gt;/ 01 = "(1*2) + 1 = ?"&lt;br/&gt;/ 02 = "(1/1) - 1 = ?"&lt;br/&gt;/ 03 = "(7*3) - 3 = ?"&lt;br/&gt;/ 04 = "(4*3) + 4 = ?"&lt;br/&gt;/ 05 = "(3/3) + 2 = ?"&lt;br/&gt;/ 06 = "(2*6) - 4 = ?"&lt;br/&gt;/ 07 = "(8*9) - 8 = ?"&lt;br/&gt;/ 08 = "(4*5) - 5 = ?"&lt;br/&gt;/ 09 = "(4*2) + 6 = ?"&lt;br/&gt;/ 10 = "(4/4) + 7 = ?"&lt;br/&gt;/ 11 = "(8*2) - 8 = ?"&lt;br/&gt;/ 12 = "(2*9) - 9 = ?"&lt;br/&gt;/ 13 = "(8/2) + 9 = ?"&lt;br/&gt;/ 14 = "(3*8) - 1 = ?"&lt;br/&gt;/ 15 = "(6/3) + 1 = ?"&lt;br/&gt;/ 16 = "(9/3) - 2 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PracMathAnswer&amp;gt;&lt;br/&gt;/ 01 = "3"&lt;br/&gt;/ 02 = "2"&lt;br/&gt;/ 03 = "18"&lt;br/&gt;/ 04 = "16"&lt;br/&gt;/ 05 = "1"&lt;br/&gt;/ 06 = "6"&lt;br/&gt;/ 07 = "64"&lt;br/&gt;/ 08 = "11"&lt;br/&gt;/ 09 = "14"&lt;br/&gt;/ 10 = "12"&lt;br/&gt;/ 11 = "2"&lt;br/&gt;/ 12 = "9"&lt;br/&gt;/ 13 = "7"&lt;br/&gt;/ 14 = "23"&lt;br/&gt;/ 15 = "3"&lt;br/&gt;/ 16 = "7"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE INSTRUCTIONS: change instructions here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;/ 1 = "In this experiment you will try to memorize letters you see on the screen &lt;br/&gt;while you also solve simple math problems.~r &lt;br/&gt;In the next few minutes, you will have some practice to get you familiar with how the experiment works.~r&lt;br/&gt;We will begin by practicing the letter part of the experiment.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin."&lt;br/&gt;/ 2 = "For this practice set, letters will appear on the screen one at a time.&lt;br/&gt;Try to remember each letter in the order presented.~r&lt;br/&gt;After a few sets, a recall screen will appear. Select the letters in the same order that you saw them. &lt;br/&gt;To do this, &amp;lt;%expressions.buttoninstruct2%&amp;gt;.~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 3 = "When you have selected all the letters, and they are in the correct order at the bottom of your screen,&lt;br/&gt;hit the EXIT box at the bottom right of the screen.~r&lt;br/&gt;If you make a mistake, hit the CLEAR box to start over.~r&lt;br/&gt;If you forget one of the letters, &amp;lt;%expressions.buttoninstruct3%&amp;gt; the BLANK box to mark the spot&lt;br/&gt;for the missing letter.~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to start the letter practice."&lt;br/&gt;/ 4 = "Now you will practice doing the math part of the experiment.~r~r&lt;br/&gt;A math problem will appear on the screen, like this:~r&lt;br/&gt;(2 * 1) + 1 = ?~r&lt;br/&gt;Once the equation is presented, you should compute the correct answer as quickly as you can. &lt;br/&gt;When you know the correct answer, you will &amp;lt;%expressions.buttoninstruct1%&amp;gt;.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 5 = "You will see a number displayed on the next screen,&lt;br/&gt;along with a box marked TRUE and a box marked FALSE.~r&lt;br/&gt;If the number on the screen is the correct answer to the math problem,&lt;br/&gt;&amp;lt;%expressions.buttoninstruct3%&amp;gt; on the TRUE box with the mouse.&lt;br/&gt;If the number is not the correct answer, &amp;lt;%expressions.buttoninstruct3%&amp;gt; on the FALSE box.~r&lt;br/&gt;After you &amp;lt;%expressions.buttoninstruct3%&amp;gt; on one of the boxes,&lt;br/&gt;the computer will tell you if you made the right choice.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 6 = "It is VERY important that you get the math problems correct.&lt;br/&gt;It is also important that you try and solve the problem as quickly as you can.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;When you're ready, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 7 = "Now you will practice doing both parts of the experiment at the same time.~r~r&lt;br/&gt;You will be given one of the math problems and make your decision about the answer. &lt;br/&gt;Then, a letter will appear on the screen. Try and remember the letter.~r&lt;br/&gt;The computer will automatically move you onto the next letter part, if you do not answer fast enough.&lt;br/&gt;Skipping the True or False part will count that problem as a math error.~r&lt;br/&gt;Therefore it is VERY important to solve the problems&lt;br/&gt;as quickly and as accurately as possible.~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 8 = "At the end of each set of letters and math problems, a recall screen will appear.&lt;br/&gt;Use the mouse to select the letters in the same order that you saw them. &lt;br/&gt;It is important to work QUICKLY and ACCURATELY on the math.&lt;br/&gt;After the recall screen, you will be given feedback about your performance&lt;br/&gt;regarding both the number of letters recalled and the percent correct on&lt;br/&gt;the math problems.~r&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to continue."&lt;br/&gt;/ 9 = "During the feedback, you will see a number in red in the top right of the screen.&lt;br/&gt;This indicates your percent correct for the math problems&lt;br/&gt;for the entire experiment.~r&lt;br/&gt;It is VERY important for you to keep this at least at 85%.&lt;br/&gt;&amp;lt;%expressions.buttoninstruct1%&amp;gt; to try some practice problems."&lt;br/&gt;/ 10 = "That is the end of the practice.~r~r&lt;br/&gt;The real trials will look like the practice trials you just completed.&lt;br/&gt;Do you have any questions?~r~r~r&lt;br/&gt;If not, &amp;lt;%expressions.buttoninstruct1%&amp;gt; to begin the experiment."&lt;br/&gt;/ 11 = "Thank you for your participation."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scorereport&amp;gt;&lt;br/&gt;/ items = ("~tResults for Subject #&amp;lt;%script.subjectid%&amp;gt;~r~r&lt;br/&gt;OSPAN Absolute Score:~t&amp;lt;%values.ospan%&amp;gt;&lt;br/&gt;OSPAN Total Correct:~t&amp;lt;%values.totalcorrectletters%&amp;gt;~r~r&lt;br/&gt;Math Total Errors:~t&amp;lt;%values.mathtotalerrors%&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;%values.mathspeederrors%&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;%values.mathaccerrors%&amp;gt;~r~r")&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (52%, 50%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;****************************************************************************************************&lt;br/&gt;general instruction expressions: adjust the instruction text depending on device used to run script&lt;br/&gt;****************************************************************************************************&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/buttoninstruct1 = if (computer.touch) {"tap the screen";} else {"click the mouse button";}&lt;br/&gt;/buttoninstruct2 = if (computer.touch) {"tap the letters you want to select";} else {"use the mouse to select each letter";}&lt;br/&gt;/buttoninstruct3 = if (computer.touch) {"tap";} else {"click";}&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE LISTS: change editable lists here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Adjustable Task Lists:&lt;br/&gt;The following list elements contain the set sizes used for the different study phases. &lt;br/&gt;The set sizes determine how many letters the participant has to remember&lt;br/&gt;as well as the number of math problems she/he has to solve intermittently.&lt;br/&gt;The task can be extended by modifying these values. The script can handle a maximum &lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;set size of 12, task flow will be adjusted automatically.&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,3,3)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;list PracBothSetSize&amp;gt;&lt;br/&gt;/ items = (2,2,2)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Set Sizes for Letter &amp;amp; Math Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestBothSetSize&amp;gt;&lt;br/&gt;/ items = (3,3,3,4,4,4,5,5,5,6,6,6,7,7,7)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;!!!REMAINING CODE: Customize after careful consideration only!!!&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEFAULTS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;script requires Inquisit 5.0.0.0 or higher&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ canvassize = (100%,100%)&lt;br/&gt;/ canvasaspectratio = (4,3)&lt;br/&gt;/ screencolor = white&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ txbgcolor = transparent&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ minimumversion = "5.0.0.0"&lt;br/&gt;/ halign = center&lt;br/&gt;/ valign = center&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DATA&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: data file explanations under User Manual Information at the top&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;raw data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, date, time, subject, group, blockcode, blocknum, trialcode, trialnum, latency, response, correct,&lt;br/&gt;values.currentsetsize, text.letters.currentitem, values.mathproblemcount, &lt;br/&gt;text.MathProblem.currentitem, values.mathtrueanswer, values.mathanswer, &lt;br/&gt;values.mathcorrect, values.mathaccuracy, values.mathtotalerrors, values.mathaccerrors, &lt;br/&gt;values.mathspeederrors, values.mathtimeout, values.recalledletters, &lt;br/&gt;values.totalcorrectletters, values.totalrecalledsets, values.ospan)&lt;br/&gt;/ labels = true&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;********************&lt;br/&gt;summary data&lt;br/&gt;********************&lt;br/&gt;&lt;br/&gt;&amp;lt;summarydata&amp;gt;&lt;br/&gt;/ columns = (script.startdate, script.starttime, script.subjectid, script.groupid, script.elapsedtime, computer.platform, values.completed, &lt;br/&gt;values.ospan, &lt;br/&gt;values.totalcorrectletters, values.mathtotalerrors, values.mathspeederrors, &lt;br/&gt;values.mathaccerrors)&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/summarydata&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;VALUES: automatically updated&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/completed:0 = script was not completed; 1 = script was completed (all conditions run)&lt;br/&gt;&lt;br/&gt;&amp;lt;values AOSPAN&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;/ stopblock=0&lt;br/&gt;/ learninginterval=1000&lt;br/&gt;/ currentsetsize=0&lt;br/&gt;/ lettercount=0&lt;br/&gt;/ correctletters=0&lt;br/&gt;/ totalcorrectletters=0&lt;br/&gt;/ ospan=0&lt;br/&gt;/ totalrecalledsets=0&lt;br/&gt;/ recalledletters=""&lt;br/&gt;/ recallcount=0&lt;br/&gt;/ recalldelay=0&lt;br/&gt;/ mathaccuracy=0&lt;br/&gt;/ mathaccerrors=0&lt;br/&gt;/ mathcurrenterrors=0&lt;br/&gt;/ mathtotalerrors=0&lt;br/&gt;/ mathspeederrors=0&lt;br/&gt;/ mathtimeout=5000&lt;br/&gt;/ mathproblemcount=0&lt;br/&gt;/ matherrorswitch=1&lt;br/&gt;/ mathcorrect=""&lt;br/&gt;/ tmp_mathopt01=""&lt;br/&gt;/ tmp_mathopt02=0&lt;br/&gt;/ tmp_mathsign=""&lt;br/&gt;/ tmp_mathopt02sign=""&lt;br/&gt;/ mathtrueanswer=0&lt;br/&gt;/ tmp_mathrand=0&lt;br/&gt;/ mathanswer=0&lt;br/&gt;/ tmp_initmath01=0&lt;br/&gt;/ tmp_initmath02=0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPRESSIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Letter String Generation is handled by two list elements:&lt;br/&gt;PracLetterList and TestLetterList.&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth) use random selection &lt;br/&gt;without replacement for each sequence.&lt;br/&gt;Switching between lists according to current study phase&lt;br/&gt;is handled dynamically by 'expressions.selectionmode'.&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions AOSPAN&amp;gt;&lt;br/&gt;/ selectionmode = if(script.currentblock=="PracLetter")PracLetterList else TestLetterList&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracLetter&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracMath&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrPracBoth&amp;gt;&lt;br/&gt;/ trials = [1-3=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrTestBoth&amp;gt;&lt;br/&gt;/ trials = [1=instructions]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstrFinal&amp;gt;&lt;br/&gt;/ trials = [1=instructions; 2=score_report]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instructions&amp;gt;&lt;br/&gt;/ pretrialpause = 250&lt;br/&gt;/ posttrialpause = 250&lt;br/&gt;/ stimulustimes = [1=instructions]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ responsetime = 2000&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text instructions&amp;gt;&lt;br/&gt;/ items = instructions&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (90%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The Letter Sequence Generation is handled dynamically by 'expressions.selectionmode':&lt;br/&gt;Letter Practice (Block PracLetter) uses sequential selection.&lt;br/&gt;Letter-Math Practice (Block PracBoth) and Letter-Math Test (Block TestBoth)&lt;br/&gt;use random selection without replacement for each sequence.&lt;br/&gt;&lt;br/&gt;&amp;lt;text Letters&amp;gt;&lt;br/&gt;/ items = ("F","P","Q","J","H","K","T","S","N","R","Y","L")&lt;br/&gt;/ fontstyle = ("Arial", 5.0%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select =  expressions.selectionmode&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Empty Item Elements for Storing Presented and Recalled Letter Sequences&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;item PresentedLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item RecalledLetters&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Screen Layout Elements for the Letter Recall Grid&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text F&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text H&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text J&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text K&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text L&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text N&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text P&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Q&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text R&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text S&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text T&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Y&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text _&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text exit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickF&amp;gt;&lt;br/&gt;/ items = ("F")&lt;br/&gt;/ position = (25%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickH&amp;gt;&lt;br/&gt;/ items = ("H")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickJ&amp;gt;&lt;br/&gt;/ items = ("J")&lt;br/&gt;/ position = (75%, 18%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickK&amp;gt;&lt;br/&gt;/ items = ("K")&lt;br/&gt;/ position = (25%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickL&amp;gt;&lt;br/&gt;/ items = ("L")&lt;br/&gt;/ position = (50%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickN&amp;gt;&lt;br/&gt;/ items = ("N")&lt;br/&gt;/ position = (75%, 33%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickP&amp;gt;&lt;br/&gt;/ items = ("P")&lt;br/&gt;/ position = (25%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickQ&amp;gt;&lt;br/&gt;/ items = ("Q")&lt;br/&gt;/ position = (50%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickR&amp;gt;&lt;br/&gt;/ items = ("R")&lt;br/&gt;/ position = (75%, 48%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickS&amp;gt;&lt;br/&gt;/ items = ("S")&lt;br/&gt;/ position = (25%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickT&amp;gt;&lt;br/&gt;/ items = ("T")&lt;br/&gt;/ position = (50%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickY&amp;gt;&lt;br/&gt;/ items = ("Y")&lt;br/&gt;/ position = (75%, 63%)&lt;br/&gt;/ size = (5%, 6%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txbgcolor = silver&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text click_&amp;gt;&lt;br/&gt;/ items = ("BLANK")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickclear&amp;gt;&lt;br/&gt;/ items = ("CLEAR")&lt;br/&gt;/ position = (18%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text clickexit&amp;gt;&lt;br/&gt;/ items = ("EXIT")&lt;br/&gt;/ position = (82%, 87%)&lt;br/&gt;/ size = (13%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recalledletters&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.recalledletters%&amp;gt;")&lt;br/&gt;/ position = (50%, 80%)&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text recallprompt&amp;gt;&lt;br/&gt;/ items = ("Select the letters in the order presented. Use the blank button to fill in forgotten items.")&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;/ size = (95%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text LetterFeedback&amp;gt;&lt;br/&gt;/ items = ("You recalled &amp;lt;%values.correctletters%&amp;gt; out of &amp;lt;%values.lettercount%&amp;gt; letters correctly.")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Practice Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems are hardcoded only for the Math Practice Phase (Block PracMath).&lt;br/&gt;For all other Study Phases (Block PracBoth &amp;amp; Block TestBoth) &lt;br/&gt;the Math Problems are generated dynamically.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;text PracMathProblem&amp;gt;&lt;br/&gt;/ items = PracMathProblem&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;/ select = PracMathList&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathAnswer&amp;gt;&lt;br/&gt;/ items = PracMathAnswer&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = false&lt;br/&gt;/ select = current(PracMathProblem)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathFeedback&amp;gt;&lt;br/&gt;/ items = ("You were correct on &amp;lt;%trial.prac_solve_math.totalcorrectcount%&amp;gt; of &amp;lt;%list.PracMathList.itemcount%&amp;gt; math trials.&lt;br/&gt;That is &amp;lt;%trial.prac_solve_math.totalpercentcorrect%&amp;gt; percent correct.~r~r~r&lt;br/&gt;Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (65%, 50%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Text and Layout Items used for the Math Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblemDisplay&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathProblem.currentitem%&amp;gt; = ?")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathProblem&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.tmp_mathopt01%&amp;gt; &amp;lt;%values.tmp_mathsign%&amp;gt; &amp;lt;%values.tmp_mathopt02%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathCorrect&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%text.MathCorrect.selectedvalue%&amp;gt;")&lt;br/&gt;/ select =  noreplace&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 60%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathAnswer&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathanswer%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 3.5%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathScore&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.mathaccuracy%&amp;gt;%")&lt;br/&gt;/ fontstyle = ("Arial", 4.0%, true)&lt;br/&gt;/ position = (85%, 15%)&lt;br/&gt;/ size = (10%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text MathFeedback&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"You made &amp;lt;%values.mathcurrenterrors%&amp;gt; math error(s) on this set of trials.",&lt;br/&gt;"You have made a total of 3 or more math errors during this set of trials. Please do your best on the math.")&lt;br/&gt;/ select =  values.matherrorswitch&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (80%, 30%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TRUE&amp;gt;&lt;br/&gt;/ items = ("TRUE")&lt;br/&gt;/ position = (31%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text FALSE&amp;gt;&lt;br/&gt;/ items = ("FALSE")&lt;br/&gt;/ position = (69%, 52%)&lt;br/&gt;/ size = (10%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text TestMathPrompt&amp;gt;&lt;br/&gt;/ items = ("Click the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text PracMathPrompt&amp;gt;&lt;br/&gt;/ items = ("When you have solved the math problem,~nclick the left mouse button to continue.")&lt;br/&gt;/ fontstyle = ("Arial", 2.7%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (60%, 10%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text correcttext&amp;gt;&lt;br/&gt;/ items = ("Correct")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text incorrecttext&amp;gt;&lt;br/&gt;/ items = ("Incorrect")&lt;br/&gt;/ position = (50%, 72%)&lt;br/&gt;/ fontstyle = ("Arial", 3.0%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (15%, 5%)&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;STIMULI: General Purpose Screen Layout Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;shape GrayFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = silver&lt;br/&gt;/ size = (78.3%, 78%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape BlackFrame&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (80%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape WhiteScreen&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;LISTS:&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Item Selection&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;Beware: Item Selection differs between the task's Practice and Test Phases!&lt;br/&gt;Generally, the single-task practice phases (Blocks PracLetter &amp;amp; PracMath) rely on &lt;br/&gt;sequential item selection. The phases involving both tasks &lt;br/&gt;(Blocks PracBoth &amp;amp; TestBoth) use random selection without replacement.&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;/ selectionmode =  sequence&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list TestLetterList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathList&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************&lt;br/&gt;Math&lt;br/&gt;*******************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list PracMathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "FALSE", "TRUE", "TRUE", "FALSE", "FALSE", "TRUE", "FALSE", &lt;br/&gt;"TRUE", "FALSE", "FALSE", "TRUE", "FALSE", "TRUE", "TRUE", "FALSE")&lt;br/&gt;/ selectionmode =  text.PracMathProblem.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Problems (Test Phase)&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Generating the math problem has 4 steps&lt;br/&gt;1. Selection of the first operation, MathOpt01: "(9/3)"&lt;br/&gt;2. Selection of the second operation, MathOpt012: "- 2"&lt;br/&gt;3. Selection of whether the answer presented to subjects should be true or false, MathCorrect: "TRUE" or "FALSE"&lt;br/&gt;4. A random number added to the correct answer to make it false, MathRand: "3"&lt;br/&gt;&lt;br/&gt;Additional Math Operations &lt;br/&gt;(add to List 'MathOpt01'):&lt;br/&gt;"(4*4)", "(2*8)", "(9*2)", "(6*3)", "(3*6)", "(2*9)", "(5*4)", "(4*5)", &lt;br/&gt;"(7*3)", "(3*7)", "(8*3)", "(6*4)", "(4*6)", "(3*8)", "(5*5)", "(9*3)",&lt;br/&gt;"(3*9)", "(7*4)", "(4*7)", "(6*5)", "(5*6)", "(8*4)", "(4*8)", "(7*5)", &lt;br/&gt;"(5*7)", "(9*4)", "(6*6)", "(4*9)", "(8*5)", "(5*8)", "(7*6)", "(6*7)",&lt;br/&gt;"(9*5)", "(5*9)", "(8*6)", "(6*8)", "(7*7)", "(9*6)", "(6*9)", "(8*7)",&lt;br/&gt;"(7*8)", "(9*7)", "(7*9)", "(8*8)", "(9*8)", "(8*9)", "(9*9)"&lt;br/&gt;&lt;br/&gt;Difficulties for Additional Operations &lt;br/&gt;(add to List 'MathDifficulty'):&lt;br/&gt;"2", "2", "2", "2", "2", "2", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "3", "3", "3", "3", &lt;br/&gt;"3", "3", "3", "3", "4", "4", "4", "4", &lt;br/&gt;"4", "4", "4", "4", "4", "4", "4", "4",&lt;br/&gt;"4", "4", "4", "4", "4", "4", "4"&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt01&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"(1/1)", "(2/1)", "(2/2)", "(3/1)", "(3/3)", "(4/1)", "(4/2)", "(4/4)", &lt;br/&gt;"(5/1)", "(5/5)", "(6/1)", "(6/2)", "(6/3)", "(6/6)", "(7/1)", "(7/7)",&lt;br/&gt;"(8/1)", "(8/2)", "(8/4)", "(8/8)", "(9/1)", "(9/3)", "(9/9)", "(1*2)", &lt;br/&gt;"(1*3)", "(2*2)", "(1*4)", "(1*5)", "(3*2)", "(2*3)", "(1*6)", "(1*7)", &lt;br/&gt;"(4*2)", "(2*4)", "(1*8)", "(3*3)", "(1*9)", "(5*2)", "(2*5)", "(6*2)", &lt;br/&gt;"(4*3)", "(3*4)", "(2*6)", "(7*2)", "(2*7)", "(5*3)", "(3*5)", "(8*2)")&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathDifficulty&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "1", "1", "1", &lt;br/&gt;"1", "1", "1", "1", "1", "2", "2", "2", &lt;br/&gt;"2", "2", "2", "2", "2", "2", "2", "2")&lt;br/&gt;/ selectionmode =  list.MathOpt01.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathOpt02&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathSign&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"+", "+", "+", "+", "+", "+", "+", "+", "+", &lt;br/&gt;"-", "-", "-", "-", "-", "-", "-", "-", "-")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathCorrect&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Alternate MathCorrect List Logic&lt;br/&gt;/ items = (&lt;br/&gt;"TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", "TRUE", &lt;br/&gt;"FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE", "FALSE")&lt;br/&gt;/ selectionmode =  list.MathOpt02)&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;list MathRand&amp;gt;&lt;br/&gt;/ items = (&lt;br/&gt;"1", "2", "3", "4", "5", "6", "7", "8", "9", &lt;br/&gt;"-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Letters&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Initialization Trial for the Different Study Phases&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitSetSize&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.currentsetsize=0; values.lettercount=0; values.correctletters=0; &lt;br/&gt;values.recallcount=0; values.recalledletters=""]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracLetter")&lt;br/&gt;{values.currentsetsize=list.PracLetterSetSize.nextvalue}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="PracBoth")&lt;br/&gt;{values.currentsetsize=list.PracBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialbegin = [if(script.currentblock=="TestBoth")&lt;br/&gt;{values.currentsetsize=list.TestBothSetSize.nextvalue; reset(list.TestLetterList)}]&lt;br/&gt;/ ontrialend = [clear(item.PresentedLetters); clear(item.RecalledLetters)]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter Trials&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial show_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.lettercount+=1]&lt;br/&gt;/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, currentsetsize]&lt;br/&gt;/ trialduration = values.learninginterval&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter]&lt;br/&gt;/ branch = [if(script.currentblock=="PracLetter")trial.show_letter else trial.InitMathProblem01]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial recall_letter&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.recallcount+=1]&lt;br/&gt;/ ontrialbegin = [if(values.recallcount==1)values.recalldelay=500 else values.recalldelay=0]&lt;br/&gt;/ pretrialpause = values.recalldelay&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit, recalledletters, recallprompt, letterstrings]&lt;br/&gt;/ validresponse = (F, H, J, K, L, N, P, Q, R, S, T, Y, _, clear, exit)&lt;br/&gt;/ monkeyresponse = ("F", "H", "J", "K", "exit")&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response!="exit" &amp;amp;&amp;amp; trial.recall_letter.response!="clear")&lt;br/&gt;{item.RecalledLetters.item=trial.recall_letter.response; values.recalledletters=concat(values.recalledletters, trial.recall_letter.response)}]&lt;br/&gt;/ ontrialend = [if(trial.recall_letter.response=="clear")&lt;br/&gt;{clear(item.RecalledLetters); values.recalledletters=""}]&lt;br/&gt;/ responsemessage = (F, clickF, 150)&lt;br/&gt;/ responsemessage = (H, clickH, 150)&lt;br/&gt;/ responsemessage = (J, clickJ, 150)&lt;br/&gt;/ responsemessage = (K, clickK, 150)&lt;br/&gt;/ responsemessage = (L, clickL, 150)&lt;br/&gt;/ responsemessage = (N, clickN, 150)&lt;br/&gt;/ responsemessage = (P, clickP, 150)&lt;br/&gt;/ responsemessage = (Q, clickQ, 150)&lt;br/&gt;/ responsemessage = (R, clickR, 150)&lt;br/&gt;/ responsemessage = (S, clickS, 150)&lt;br/&gt;/ responsemessage = (T, clickT, 150)&lt;br/&gt;/ responsemessage = (Y, clickY, 150)&lt;br/&gt;/ responsemessage = (clear, clickclear, 150)&lt;br/&gt;/ responsemessage = (exit, clickexit, 150)&lt;br/&gt;/ responsemessage = (_, click_, 150)&lt;br/&gt;/ branch = [if(trial.recall_letter.response=="exit")trial.letter_feedback else trial.recall_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Recall Feedback:&lt;br/&gt;In this trial, the presented letter sequenceis compared &lt;br/&gt;to the letter string the participant has entered. &lt;br/&gt;Feedback is given accordingly. &lt;br/&gt;This trial also handles reporting of math performance&lt;br/&gt;for Letter-Math Practice (Block PracBoth) and &lt;br/&gt;Letter-Math Test (Block TestBoth).&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial letter_feedback&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ ontrialbegin = [values.correctletters=0]&lt;br/&gt;/ ontrialbegin = [if(values.mathcurrenterrors&amp;gt;=3)values.matherrorswitch=2 else values.matherrorswitch=1]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if(item.RecalledLetters.item.1 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.1==item.RecalledLetters.item.1)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.2 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.2==item.RecalledLetters.item.2)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.3 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.3==item.RecalledLetters.item.3)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.4 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.4==item.RecalledLetters.item.4)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.5 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.5==item.RecalledLetters.item.5)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.6 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.6==item.RecalledLetters.item.6)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.7 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.7==item.RecalledLetters.item.7)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.8 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.8==item.RecalledLetters.item.8)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.9 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.9==item.RecalledLetters.item.9)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.10 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.10==item.RecalledLetters.item.10)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.11 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.11==item.RecalledLetters.item.11)values.correctletters+=1; &lt;br/&gt;if(item.RecalledLetters.item.12 != "" &amp;amp;&amp;amp; item.PresentedLetters.item.12==item.RecalledLetters.item.12)values.correctletters+=1]&lt;br/&gt;/ ontrialbegin = [if(values.correctletters==values.currentsetsize)&lt;br/&gt;{values.ospan=values.ospan+values.correctletters; values.totalrecalledsets+=1}]&lt;br/&gt;/ ontrialbegin = [values.totalcorrectletters=values.totalcorrectletters+values.correctletters]&lt;br/&gt;/ ontrialend = [values.mathcurrenterrors=0]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracLetter" &amp;amp;&amp;amp; list.PracLetterSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="PracBoth" &amp;amp;&amp;amp; list.PracBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ ontrialend = [if(script.currentblock=="TestBoth" &amp;amp;&amp;amp; list.TestBothSetSize.unselectedcount==0)&lt;br/&gt;{values.stopblock=1}]&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, LetterFeedback, MathFeedback, MathScore, scoredebug]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.InitSetSize]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS: Math&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Math Practice Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_show_math&amp;gt;&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathProblem, PracMathPrompt]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ branch = [trial.prac_solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, PracMathAnswer, TRUE, FALSE]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (list.PracMathCorrect.nextvalue)&lt;br/&gt;/ responsemessage = (anyresponse, PracMathAnswer, 800)&lt;br/&gt;/ correctmessage = true(correcttext, 800)&lt;br/&gt;/ errormessage = true(incorrecttext, 800)&lt;br/&gt;/ branch = [if(trial.prac_show_math.trialcount &amp;gt;= list.PracMathList.itemcount)&lt;br/&gt;trial.prac_math_feedback else trial.prac_show_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prac_math_feedback&amp;gt;&lt;br/&gt;/ ontrialend = [values.stopblock=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=WhiteScreen, PracMathFeedback]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Letter-Math Practice &amp;amp; Test Phase&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Setting up Math Problems:&lt;br/&gt;&lt;br/&gt;'InitMathProblem01' and 'InitMathProblem02'&lt;br/&gt;are used to set up and check the randomly &lt;br/&gt;generated math problems used for&lt;br/&gt;Letter-Math Practice (Block 'PracBoth') and &lt;br/&gt;Letter-Math Test (Block 'TestBoth'). &lt;br/&gt;Only math problems with a *true* result &lt;br/&gt;greater than or equal to zero are allowed in the task. &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;The calculations contained in trial 'InitMathProblem01' &lt;br/&gt;ensure that the participant is given a math problem &lt;br/&gt;with a *true* result greater than or equal to zero.&lt;br/&gt;The adjustments may cause MathOpt02 to become zero.&lt;br/&gt;This *does* happen in the original version of the task programmed&lt;br/&gt;in E-Prime.To avoid MathOpt02=0 exchange&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]' with&lt;br/&gt;'/ branch = [if(values.mathanswer&amp;lt;0 || values.tmp_mathopt02==0)trial.InitMathProblem01]'&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem01&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01==1)&lt;br/&gt;{values.tmp_mathopt01=list.MathOpt01.nextvalue;&lt;br/&gt;values.tmp_mathsign=list.MathSign.nextvalue;&lt;br/&gt;values.tmp_mathopt02=list.MathOpt02.nextvalue;&lt;br/&gt;values.mathcorrect=list.MathCorrect.nextvalue;&lt;br/&gt;values.tmp_mathopt02sign=concat(values.tmp_mathsign, values.tmp_mathopt02);&lt;br/&gt;values.tmp_mathopt02sign=evaluate(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1)&lt;br/&gt;{values.tmp_mathopt02sign+=3;&lt;br/&gt;values.tmp_mathopt02=abs(values.tmp_mathopt02sign)}]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath01&amp;gt;1 &amp;amp;&amp;amp; values.tmp_mathopt02sign&amp;gt;0)&lt;br/&gt;values.tmp_mathsign="+"]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem);&lt;br/&gt;values.mathtrueanswer=values.mathanswer]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;lt;0)trial.InitMathProblem01]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="TRUE")trial.show_math]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathcorrect=="FALSE")trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;For trials that should present a *false* math answer,&lt;br/&gt;a randomly drawn integer ranging from -9 to +9 &lt;br/&gt;is added to the math problem's *true* result. &lt;br/&gt;The calculations contained in 'InitMathProblem02' ensure that &lt;br/&gt;this *false* answer is also greater than or equal to zero.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial InitMathProblem02&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath02+=1]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02==1)values.tmp_mathrand=list.MathRand.nextvalue]&lt;br/&gt;/ ontrialbegin = [if(values.tmp_initmath02&amp;gt;1)values.tmp_mathrand+=2]&lt;br/&gt;/ ontrialend = [values.mathanswer=evaluate(text.MathProblem.currentitem)+values.tmp_mathrand]&lt;br/&gt;/ branch = [if(values.mathanswer&amp;gt;=0 &amp;amp;&amp;amp; values.mathanswer!=values.mathtrueanswer)trial.show_math else trial.InitMathProblem02]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;The following trials handle presentation of math problems&lt;br/&gt;and scoring of participants' responses.&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;trial show_math&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.tmp_initmath01=0; values.tmp_initmath02=0;&lt;br/&gt;values.mathproblemcount+=1]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathProblemDisplay, TestMathPrompt, mathtimeout]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ timeout = values.mathtimeout+500&lt;br/&gt;/ ontrialend = [if(trial.show_math.response!="lbuttondown")&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathspeederrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ branch = [if(trial.show_math.response!="lbuttondown")trial.show_letter else trial.solve_math]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial solve_math&amp;gt;&lt;br/&gt;/ ontrialend = [if(trial.solve_math.correct==0)&lt;br/&gt;{values.mathcurrenterrors+=1; values.mathaccerrors+=1; values.mathtotalerrors+=1}]&lt;br/&gt;/ ontrialend = [values.mathaccuracy=round(((values.mathproblemcount-values.mathtotalerrors)/values.mathproblemcount)*100)]&lt;br/&gt;/ pretrialpause = 500&lt;br/&gt;/ stimulusframes = [1=BlackFrame, GrayFrame, MathAnswer, TRUE, FALSE, mathdebug]&lt;br/&gt;/ validresponse = (TRUE, FALSE)&lt;br/&gt;/ correctresponse = (values.mathcorrect)&lt;br/&gt;/ branch = [trial.show_letter]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;SCORING&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;The program reports five values at the conclusion of the experiment: &lt;br/&gt;&lt;br/&gt;The first, OSPAN score, uses the traditional "absolute ospan"&amp;nbsp;scoring method. &lt;br/&gt;It is the sum of all perfectly recalled sets. &lt;br/&gt;So, for example, if an individual recalled correctly 2 letters in a set size of 2,&lt;br/&gt;3 letters in a set size of 3, and 3 letters in a set size of 4,&lt;br/&gt;their OSPAN score would be 5 (2 + 3 + 0).&lt;br/&gt;&lt;br/&gt;Total number correct is the total number of letters recalled in the correct position&lt;br/&gt;(2 + 3 + 4 = 9 in the above example). &lt;br/&gt;&lt;br/&gt;Math errors are reported as total number of errors, &lt;br/&gt;accuracy errors where the subject solved the operation incorrectly, &lt;br/&gt;and speed errors in which the subject ran out of time &lt;br/&gt;in attempting to solve a given operation.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial score_report&amp;gt;&lt;br/&gt;/ stimulusframes = [1=scorereport]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracLetter&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=white; text.MathScore.textcolor=white; values.stopblock=0]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracMath&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [values.mathaccuracy=0]&lt;br/&gt;/ onblockend = [values.mathtimeout=(2.5*trial.prac_show_math.totalsdlatency)+trial.prac_show_math.totalmeanlatency]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=prac_show_math]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PracBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ onblockend = [values.stopblock=0]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block TestBoth&amp;gt;&lt;br/&gt;/ onblockbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ onblockbegin = [text.MathFeedback.textcolor=black; text.MathScore.textcolor=red]&lt;br/&gt;/ onblockbegin = [values.mathcurrenterrors=0; values.mathaccuracy=0; values.mathaccerrors=0;&lt;br/&gt;values.mathtotalerrors=0; values.mathspeederrors=0; values.mathproblemcount=0;&lt;br/&gt;values.lettercount=0; values.correctletters=0; values.currentsetsize=0;&lt;br/&gt;values.recallcount=0; values.recalledletters=""; values.totalrecalledsets=0; &lt;br/&gt;values.totalcorrectletters=0; values.ospan=0]&lt;br/&gt;/ stop = [values.stopblock==1]&lt;br/&gt;/ trials = [1=InitSetSize]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EXPERIMENT &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;expt AOSPAN&amp;gt;&lt;br/&gt;/ onexptbegin = [if(script.subjectid!="debug")&lt;br/&gt;{text.currentsetsize.textcolor=white; text.letterstrings.textcolor=white; &lt;br/&gt;text.mathdebug.textcolor=silver; text.mathtimeout.textcolor=silver;&lt;br/&gt;text.scoredebug.textcolor=white}]&lt;br/&gt;/ blocks = [1=InstrPracLetter; 2=PracLetter; 3=InstrPracMath; 4=PracMath; &lt;br/&gt;5=InstrPracBoth; 6=PracBoth; 7=InstrTestBoth; 8=TestBoth; 9=InstrFinal]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;DEBUG: On-Screen Debugging Items&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;These items are invisible by default. &lt;br/&gt;Enter 'debug' as subject id to enable them.&lt;br/&gt;&lt;br/&gt;&amp;lt;text currentsetsize&amp;gt;&lt;br/&gt;/ items = ("Setsize: &amp;lt;%values.currentsetsize%&amp;gt; / Lettercount: &amp;lt;%values.lettercount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text letterstrings&amp;gt;&lt;br/&gt;/ items = ("~tPresented Letters:~t&amp;lt;%item.PresentedLetters.item.1%&amp;gt;&amp;lt;%item.PresentedLetters.item.2%&amp;gt;&amp;lt;%item.PresentedLetters.item.3%&amp;gt;&amp;lt;%item.PresentedLetters.item.4%&amp;gt;&amp;lt;%item.PresentedLetters.item.5%&amp;gt;&amp;lt;%item.PresentedLetters.item.6%&amp;gt;&amp;lt;%item.PresentedLetters.item.7%&amp;gt;&amp;lt;%item.PresentedLetters.item.8%&amp;gt;&amp;lt;%item.PresentedLetters.item.9%&amp;gt;&amp;lt;%item.PresentedLetters.item.10%&amp;gt;&amp;lt;%item.PresentedLetters.item.11%&amp;gt;&amp;lt;%item.PresentedLetters.item.12%&amp;gt;&lt;br/&gt;~tRecalled Letters:~t&amp;lt;%item.RecalledLetters.item.1%&amp;gt;&amp;lt;%item.RecalledLetters.item.2%&amp;gt;&amp;lt;%item.RecalledLetters.item.3%&amp;gt;&amp;lt;%item.RecalledLetters.item.4%&amp;gt;&amp;lt;%item.RecalledLetters.item.5%&amp;gt;&amp;lt;%item.RecalledLetters.item.6%&amp;gt;&amp;lt;%item.RecalledLetters.item.7%&amp;gt;&amp;lt;%item.RecalledLetters.item.8%&amp;gt;&amp;lt;%item.RecalledLetters.item.9%&amp;gt;&amp;lt;%item.RecalledLetters.item.10%&amp;gt;&amp;lt;%item.RecalledLetters.item.11%&amp;gt;&amp;lt;%item.RecalledLetters.item.12%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (55%, 5%)&lt;br/&gt;/ position = (50%, 87%)&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathdebug&amp;gt;&lt;br/&gt;/ items = ("~tMath Problem:~t~t&amp;lt;% text.MathProblem.currentitem %&amp;gt;~r&lt;br/&gt;~tTrue Answer:~t~t&amp;lt;% values.mathtrueanswer %&amp;gt;~r&lt;br/&gt;~tPresented Answer:~t&amp;lt;% values.mathcorrect %&amp;gt;~r~r")&lt;br/&gt;/ size = (50%, 7%)&lt;br/&gt;/ halign = center&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ position = (45%, 70%)&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mathtimeout&amp;gt;&lt;br/&gt;/ items = ("Timeout = &amp;lt;%values.mathtimeout%&amp;gt; ms~r&lt;br/&gt;Math Problem # &amp;lt;%values.mathproblemcount%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 20%)&lt;br/&gt;/ erase = true(silver)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text scoredebug&amp;gt;&lt;br/&gt;/ items = ("OSPAN Score:~t~t&amp;lt;% values.ospan %&amp;gt;&lt;br/&gt;Total Number Correct:~t&amp;lt;% values.totalcorrectletters %&amp;gt;~r~r&lt;br/&gt;Math Errors (Total):~t&amp;lt;% values.mathtotalerrors %&amp;gt;&lt;br/&gt;Math Speed Errors:~t&amp;lt;% values.mathspeederrors %&amp;gt;&lt;br/&gt;Math Accuracy Errors:~t&amp;lt;% values.mathaccerrors %&amp;gt;~r~r")&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ size = (50%, 5%)&lt;br/&gt;/ position = (50%, 75%)&lt;br/&gt;/ erase = true(white)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;monkey AOSPAN&amp;gt;&lt;br/&gt;/ latencydistribution = normal(800, 200)&lt;br/&gt;/ percentcorrect = 100&lt;br/&gt;&amp;lt;/monkey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;End of File&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;</description><pubDate>Mon, 20 Feb 2017 06:53:16 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20789.aspx</link><description>&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487596968096"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487596968096"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487596968096"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487596968096"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487596968096"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487596968096"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;If I wanted participants to click the mouse after they see the initial equation to continue to the next screen (rather than it automatically going to the next screen), how would I do that?&amp;nbsp;</description><pubDate>Mon, 20 Feb 2017 05:24:04 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20787.aspx</link><description>&lt;div data-id="20784" class="if-quote-wrapper" unselectable="on" data-guid="1487596499173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20784" 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="20784" 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="20784" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, February 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-20784"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20779" class="if-quote-wrapper" unselectable="on" data-guid="1487596499173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20779" 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="20779" 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="20779" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Sunday, February 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-20779"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20711" class="if-quote-wrapper" unselectable="on" data-guid="1487596499173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20711" 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="20711" 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="20711" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20711"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487596499173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487596499173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487596499173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487596499173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487596499173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487596499173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;This is much easier! Thank you SO much! I really appreciate it!!!!!&lt;a class="if-quote-goto quote-link" href="#" data-id="20711"&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;If I wanted to add an instructions page, how would I do that? All I want to say is "In this task you will be presented with arithmetic equations"&lt;a class="if-quote-goto quote-link" href="#" data-id="20779"&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;Set up a &amp;lt;page&amp;gt; element with your instructions&lt;br/&gt;&lt;br/&gt;&amp;lt;page intro&amp;gt;&lt;br/&gt;^In this task you will be presented with arithmetic equations.&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;and display it via the &amp;lt;block&amp;gt;'s /preinstructions:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ preinstructions = (intro)&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20784"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thank you! I am also trying to use the same practice trials and instructions from the operation span task. Is there an easy way to copy this from the operation span template on inquisit?&amp;nbsp;</description><pubDate>Mon, 20 Feb 2017 05:16:08 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20784.aspx</link><description>&lt;div data-id="20779" class="if-quote-wrapper" unselectable="on" data-guid="1487542476719"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20779" 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="20779" 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="20779" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Sunday, February 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-20779"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20711" class="if-quote-wrapper" unselectable="on" data-guid="1487542476719"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20711" 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="20711" 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="20711" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20711"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487542476719"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487542476719"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487542476719"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487542476719"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487542476719"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487542476719"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;This is much easier! Thank you SO much! I really appreciate it!!!!!&lt;a class="if-quote-goto quote-link" href="#" data-id="20711"&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;If I wanted to add an instructions page, how would I do that? All I want to say is "In this task you will be presented with arithmetic equations"&lt;a class="if-quote-goto quote-link" href="#" data-id="20779"&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;Set up a &amp;lt;page&amp;gt; element with your instructions&lt;br/&gt;&lt;br/&gt;&amp;lt;page intro&amp;gt;&lt;br/&gt;^In this task you will be presented with arithmetic equations.&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;and display it via the &amp;lt;block&amp;gt;'s /preinstructions:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ preinstructions = (intro)&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;</description><pubDate>Sun, 19 Feb 2017 14:16:14 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20779.aspx</link><description>&lt;div data-id="20711" class="if-quote-wrapper" unselectable="on" data-guid="1487529887152"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20711" 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="20711" 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="20711" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20711"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487529887152"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487529887152"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487529887152"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487529887152"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487529887152"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487529887152"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;This is much easier! Thank you SO much! I really appreciate it!!!!!&lt;a class="if-quote-goto quote-link" href="#" data-id="20711"&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;If I wanted to add an instructions page, how would I do that? All I want to say is "In this task you will be presented with arithmetic equations"</description><pubDate>Sun, 19 Feb 2017 10:45:57 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20711.aspx</link><description>&lt;div data-id="20708" class="if-quote-wrapper" unselectable="on" data-guid="1487022306579"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20708" 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="20708" 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="20708" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20708"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487022306579"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487022306579"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487022306579"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487022306579"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487022306579"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20708"&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;This is much easier! Thank you SO much! I really appreciate it!!!!!</description><pubDate>Mon, 13 Feb 2017 13:45:27 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20708.aspx</link><description>&lt;div data-id="20706" class="if-quote-wrapper" unselectable="on" data-guid="1487019634253"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20706" 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="20706" 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="20706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487019634253"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487019634253"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487019634253"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487019634253"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20706"&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;Okay, thanks for the additional details. The image displays fine (see attached example).&lt;br/&gt;&lt;br/&gt;I am, however, wondering why you would want to use images for this:&lt;br/&gt;&lt;br/&gt;"My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors."&lt;br/&gt;&lt;br/&gt;This should be much easier to do using standard &amp;lt;text&amp;gt; elements. Something like:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-8 = noreplace(black, green, blue, red)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial black&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = black;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (black)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = green;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (green)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial blue&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = blue;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (blue)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial red&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.equation.textcolor = red;]&lt;br/&gt;/ stimulustimes = [1=equation; 1000=blank, question, black, green, blue, red]&lt;br/&gt;/ validresponse = (black, green, blue, red)&lt;br/&gt;/ correctresponse = (red)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text equation&amp;gt;&lt;br/&gt;/ items = equations&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item equations&amp;gt;&lt;br/&gt;/ 1 = "1 + 1 = ?"&lt;br/&gt;/ 2 = "2 + 2 = ?"&lt;br/&gt;/ 3 = "3 + 3 = ?"&lt;br/&gt;/ 4 = "4 + 4 = ?"&lt;br/&gt;/ 5 = "5 + 5 = ?"&lt;br/&gt;/ 6 = "6 + 6 = ?"&lt;br/&gt;/ 7 = "7 + 7 = ?"&lt;br/&gt;/ 8 = "8 + 8 = ?"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text question&amp;gt;&lt;br/&gt;/ items = ("What color was the equation?")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text black&amp;gt;&lt;br/&gt;/ items = ("BLACK")&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ position = (20%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text green&amp;gt;&lt;br/&gt;/ items = ("GREEN")&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blue&amp;gt;&lt;br/&gt;/ items = ("BLUE")&lt;br/&gt;/ txcolor = blue&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text red&amp;gt;&lt;br/&gt;/ items = ("RED")&lt;br/&gt;/ txcolor = red&lt;br/&gt;/ position = (80%, 75%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 13 Feb 2017 13:16:06 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20706.aspx</link><description>&lt;div data-id="20705" class="if-quote-wrapper" unselectable="on" data-guid="1487018851113"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20705" 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="20705" 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="20705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487018851113"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487018851113"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487018851113"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20705"&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;Here is the file. As you'll see, all I need is a simple equation (1+1=?). My ultimate goal is to display equations like this on the screen, with the next screen asking what color the equation is in. I would do the same thing multiple times, the only difference being the colors. That's all I need for this whole project, but since this is my first time creating a script without instruction, I am having quite a bit of trouble.&amp;nbsp;</description><pubDate>Mon, 13 Feb 2017 12:51:50 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20705.aspx</link><description>&lt;div data-id="20704" class="if-quote-wrapper" unselectable="on" data-guid="1487018080790"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20704" 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="20704" 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="20704" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20704"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487018080790"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487018080790"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?&lt;a class="if-quote-goto quote-link" href="#" data-id="20704"&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;The file ought to be located in the same directory / folder as the script itself (e.g. both the script and the image file would reside on your Desktop). There's also a minimal chance that there's something wrong with the file (e.g. invalid metadata), preventing Inquisit from being able to use it. In that case, you can open the file in a simple graphics program (Microsoft Paint will do), and re-save it under a different name or format. Also make sure you don't have any typo in the /items attribute (i.e. the file name is given correctly) and that the image is of a supported format (e.g. JPG or PNG, Photoshop PSDs will not work for example). If none of this helps, attach the script and image file to this thread. Put them in a ZIP archive and click +Insert -&amp;gt; Add File to attach the ZIP to your response here.&lt;br/&gt;</description><pubDate>Mon, 13 Feb 2017 12:40:02 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20704.aspx</link><description>&lt;div data-id="20703" class="if-quote-wrapper" unselectable="on" data-guid="1487015101491"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20703" 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="20703" 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="20703" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 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-20703"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487015101491"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20703"&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;This is very helpful, thank you! &amp;nbsp;I tried using these steps but the file I want to use still isn't being recognized by Inquisit. Do I have to do something differently to define the image file?</description><pubDate>Mon, 13 Feb 2017 11:47:25 GMT</pubDate><dc:creator>ins6</dc:creator></item><item><title>RE: using images</title><link>https://forums.millisecond.com/Topic20703.aspx</link><description>&lt;div data-id="20702" class="if-quote-wrapper" unselectable="on" data-guid="1487014412719"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20702" 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="20702" 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="20702" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ins6 - Monday, February 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-20702"&gt;&lt;div class="if-quote-message-margin"&gt;How do I insert images on Inquisit? I am trying to use a screenshot from my desktop to use instead of text.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="20702"&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;You set up a &amp;lt;picture&amp;gt; element, define the image file(s) you want to display as its /items and then display the &amp;lt;picture&amp;gt; element via your &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames&lt;br/&gt;&lt;br/&gt;&amp;lt;picture somepicture&amp;gt;&lt;br/&gt;/ items = ("someimagefile.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=somepicture]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 13 Feb 2017 11:35:56 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>