﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Assign groups to condition 1 and 3 only</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 28 Sep 2026 01:27:27 GMT</lastBuildDate><ttl>20</ttl><item><title>Assign groups to condition 1 and 3 only</title><link>https://forums.millisecond.com/Topic26067.aspx</link><description>I am running the Racism IAT which is counterbalanced between even and odd group numbers. I need to run subjects through the odd numbered, target compatible 1st, target incompatible 2nd, &amp;nbsp;every time. How do I run group numbers 1 and 3 only?&lt;br/&gt;&lt;br/&gt;I am scared to alter the Racism IAT script and do not how to perform URL parameters in Inquisit Web to assign group IDs.&lt;br/&gt;&lt;br/&gt;Is there an easy fix? Help, many thanks, Ben.&lt;br/&gt;&lt;br/&gt;raceiat.iqx:&lt;br/&gt;&lt;br/&gt;&amp;lt;usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;Race Implicit Attitude Test (IAT) - with pictures&lt;br/&gt;SCRIPT INFO&lt;br/&gt;&lt;br/&gt;Main Inquisit programming: Sean Draine (&lt;a href="mailto:seandr@millisecond.com"&gt;seandr@millisecond.com&lt;/a&gt;)&lt;br/&gt;last updated:  02-12-2018 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 © 02-12-2018 Millisecond Software&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;BACKGROUND INFO&lt;br/&gt;&lt;br/&gt;The Implicit Association Task (Greenwald, McGhee, &amp;amp; Schwartz, 1998) is a widely-used cognitive-behavioral paradigm&lt;br/&gt;that measures the strength of automatic (implicit) associations between concepts in people’s minds relying &lt;br/&gt;on latency measures in a simple sorting task.&lt;br/&gt; &lt;br/&gt;The strength of an association between concepts is measured by the standardized mean difference score of &lt;br/&gt;the 'hypothesis-inconsistent' pairings and 'hypothesis-consistent' pairings (d-score) (Greenwald, Nosek, &amp;amp; Banaji, 2003). &lt;br/&gt;In general, the higher the d-score the stronger is the association between the 'hypothesis-consistent' pairings &lt;br/&gt;(decided by researchers). Negative d-scores suggest a stronger association between the 'hypothesis-inconsistent' pairings.&lt;br/&gt;&lt;br/&gt;Inquisit calculates d-scores using the improved scoring algorithm as described in Greenwald et al (2003). &lt;br/&gt;Error trials are handled by requiring respondents to correct their responses according to recommendation (p.214).&lt;br/&gt;&lt;br/&gt;D-scores obtained with this script:&lt;br/&gt;Positive d-scores: support a stronger association between 'White American-Good' and 'Black American-Bad' than for the opposite pairings&lt;br/&gt;Negative d-scores: support a stronger association between 'Black American-Good' and 'White American-Bad' than for the opposite pairings&lt;br/&gt;&lt;br/&gt;References:&lt;br/&gt;&lt;br/&gt;general IAT:&lt;br/&gt;Greenwald, A. G., McGhee, D. E., &amp;amp; Schwartz, J. K. L. (1998). Measuring individual differences in implicit cognition: &lt;br/&gt;The Implicit Association Test. Journal of Personality and Social Psychology, 74, 1464-1480.&lt;br/&gt;&lt;br/&gt;Greenwald, A. G., Nosek, B. A., &amp;amp; Banaji, M. R. (2003). Understanding and Using the Implicit Association Test: &lt;br/&gt;I. An Improved Scoring Algorithm. Journal of Personality and Social Psychology, 85, 197-216.&lt;br/&gt;&lt;br/&gt;Stimuli: This script is based on the generic Inquisit IAT template and uses the pictures from Project Implicit's Race IAT&lt;br/&gt;(Retrieved from osf.io/y9hiq)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  *Task*&lt;br/&gt;Participants are asked to categorize attributes (e.g. "joyful"; "tragic") and target items (e.g pictures of Black Americans and White Americans) &lt;br/&gt;into predetermined categories via keystroke presses. The basic task is to press a left key (E) if an item (e.g. "joyful")&lt;br/&gt;belongs to the category presented on the left (e.g. "Good") and to press the right key (I) if the word (e.g. "tragic") &lt;br/&gt;belongs to the category ("Bad") presented on the right.&lt;br/&gt;For practice, participants sort items into the target categories "Black Americans vs. White Americans" and the attribute categories "Good vs. Bad".&lt;br/&gt;For the test, participants are asked to sort categories into the paired/combined categories (e.g. &lt;br/&gt;"White Americans OR Good" on the left vs. "Black Americans OR Bad" on the right). Pairings are reversed for a second test &lt;br/&gt;(e.g. "Black Americans OR Good" on the left vs. "White Americans OR Bad" on the right). Order is counterbalanced by groupnumber.  &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: 'RaceIAT_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;Note: group1/group2 counterbalance the order in which the pairings are run&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;response:the final trial response (scancodes of the keys pressed)&lt;br/&gt;Note: script saves the final and -by design- correct response&lt;br/&gt;correct:the accuracy of the initial response&lt;br/&gt;0 = initial response was incorrect and needed to be corrected&lt;br/&gt;1 = initial response is correct&lt;br/&gt;latency:the latency of the final (correct) response in ms&lt;br/&gt;stimulusnumber:the number of the current stimulus&lt;br/&gt;stimulusitem:the currently presented item&lt;br/&gt;expressions.da:d-score of the first short blocks&lt;br/&gt;expressions.db:d-score of the second long blocks&lt;br/&gt;expressions.d:overall d-score(non-weighted mean of the 2 d-scores)&lt;br/&gt;/ percentcorrect:&amp;nbsp;&amp;nbsp; the overall percent correct score of initial responses of test trials of D-score qualifying latencies&lt;br/&gt;&lt;br/&gt;(2) Summary data file: 'RaceIAT_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;expressions.da:d-score of the first blocks&lt;br/&gt;expressions.db:d-score of the second blocks&lt;br/&gt;expressions.d:overall d-score&lt;br/&gt;/ percentcorrect:&amp;nbsp;&amp;nbsp; the overall percent correct score of initial responses of test trials of D-score qualifying latencies&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;EXPERIMENTAL SET-UP&lt;br/&gt;&lt;br/&gt;Hypothesis-consistent pairings vs. hypothesis-inconsistent pairings; tested within-subjects &lt;br/&gt;=&amp;gt; order is counterbalanced by groupnumber assignment&lt;br/&gt;&lt;br/&gt;Block Sequence:&lt;br/&gt;1. Target Category sorting training&lt;br/&gt;2. Attribute sorting training&lt;br/&gt;3. 1. Test Block of hypothesis-consistent* pairings with 20 trials (half the participant start with inconsistent pairings)&lt;br/&gt;4. 2. Test Block of hypothesis-consistent pairings with 40 trials&lt;br/&gt;5. Target Category sorting training with targets switching sides&lt;br/&gt;6. 1. Test Block of hypothesis-inconsistent pairings with 20 trials&lt;br/&gt;7. 2. Test Block of hypothesis-inconsistent pairings with 40 trials&lt;br/&gt;&lt;br/&gt;In all Test Blocks:&lt;br/&gt;* attributes and targets alternate&lt;br/&gt;* attributes as well as targets are randomly selected without replacement&lt;br/&gt;&lt;br/&gt;Trial Sequence:&lt;br/&gt;Target -&amp;gt; until correct response -&amp;gt; ISI: 250ms (default)-&amp;gt; Target....STIMULI&lt;br/&gt;Stimuli can be edited under section Editable Stimuli&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;* start instruction page is provided as an html page. It automatically adapts to different images and category labels UNLESS&lt;br/&gt;the number of attributes and/or targets have been changed. In this case, changes have to be &lt;br/&gt;made to file "intro_iat.htm", so that the correct number of items are presented in the overview table.&lt;br/&gt;&lt;br/&gt;Example: instead of 8 words for target A, only 5 should be presented:&lt;br/&gt;&lt;br/&gt;in file "intro_iat.htm":&lt;br/&gt;change:&lt;br/&gt;&amp;lt;td&amp;gt;&amp;lt;%item.targetA.item(1)%&amp;gt;, &amp;lt;%item.targetA.item(2)%&amp;gt;, &amp;lt;%item.targetA.item(3)%&amp;gt;, &amp;lt;%item.targetA.item(4)%&amp;gt;, &lt;br/&gt;&amp;lt;%item.targetA.item(5)%&amp;gt;, &amp;lt;%item.targetA.item(6)%&amp;gt;, &amp;lt;%item.targetA.item(7)%&amp;gt;, &amp;lt;%item.targetA.item(8)%&amp;gt;&lt;br/&gt;&amp;lt;/td&amp;gt;&lt;br/&gt;&lt;br/&gt;To:&lt;br/&gt;&amp;lt;td&amp;gt;&amp;lt;%item.targetA.item(1)%&amp;gt;, &amp;lt;%item.targetA.item(2)%&amp;gt;, &amp;lt;%item.targetA.item(3)%&amp;gt;, &amp;lt;%item.targetA.item(4)%&amp;gt;, &lt;br/&gt;&amp;lt;%item.targetA.item(5)%&amp;gt;&lt;br/&gt;&amp;lt;/td&amp;gt;&lt;br/&gt;&lt;br/&gt;* item.instructions under section 'Editable Instructions' contains the the trial instructions&lt;br/&gt;The instructions adapt automatically if different attributes and targets are used.&lt;br/&gt;&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;The parameters you can change are:&lt;br/&gt;&lt;br/&gt;/showsummaryfeedback:set parameter showsummaryfeedback = true to display summary feedback to participants at the end (default)&lt;br/&gt;set parameter showsummaryfeedback = false if no summary feedback should be presented to participants&lt;br/&gt;/ISI:interstimulus interval (in ms) (default: 250ms)&lt;br/&gt;&amp;lt;/usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE PARAMETERS: change editable parameters here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/showsummaryfeedback = true&lt;br/&gt;/ISI = 250&lt;br/&gt;&amp;lt;/parameters&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;This sample IAT can be easily adapted to different target categories &lt;br/&gt;and attributes. To change the categories, you need only change the &lt;br/&gt;stimulus items and labels immediately below this line.&lt;br/&gt;&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;item attributeAlabel&amp;gt;&lt;br/&gt;/1 = "Good"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item attributeA&amp;gt;&lt;br/&gt;/1 = "Marvelous"&lt;br/&gt;/2 = "Superb"&lt;br/&gt;/3 = "Pleasure"&lt;br/&gt;/4 = "Beautiful"&lt;br/&gt;/5 = "Joyful"&lt;br/&gt;/6 = "Glorious"&lt;br/&gt;/7 = "Lovely"&lt;br/&gt;/8 = "Wonderful"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item attributeBlabel&amp;gt;&lt;br/&gt;/1 = "Bad"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item attributeB&amp;gt;&lt;br/&gt;/1 = "Tragic"&lt;br/&gt;/2 = "Horrible"&lt;br/&gt;/3 = "Agony"&lt;br/&gt;/4 = "Painful"&lt;br/&gt;/5 = "Terrible"&lt;br/&gt;/6 = "Awful"&lt;br/&gt;/7 = "Humiliate"&lt;br/&gt;/8 = "Nasty"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetAlabel&amp;gt;&lt;br/&gt;/1 = "White American"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetA&amp;gt;&lt;br/&gt;/1 = "wf2_nc.jpg"&lt;br/&gt;/2 = "wf3_nc.jpg"&lt;br/&gt;/3 = "wf6_nc.jpg"&lt;br/&gt;/4 = "wm1_nc.jpg"&lt;br/&gt;/5 = "wm4_nc.jpg"&lt;br/&gt;/6 = "wm6_nc.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetBlabel&amp;gt;&lt;br/&gt;/1 = "Black American"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetB&amp;gt;&lt;br/&gt;/1 = "bf14_nc.jpg"&lt;br/&gt;/2 = "bf23_nc.jpg"&lt;br/&gt;/3 = "bf56_nc.jpg"&lt;br/&gt;/4 = "bm14_nc.jpg"&lt;br/&gt;/5 = "bm23_nc.jpg"&lt;br/&gt;/6 = "bm56_nc.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&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;&amp;lt;instruct&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 2.8%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = (black)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage iatintro&amp;gt;&lt;br/&gt;/ file = "intro_pictureiat.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;/ 1 = "Put your left finger on the 'E' response key for items that belong to the category '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;Put your right finger on the 'I' response key for items that belong to the category '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;~nItems will appear one-by-one in the middle of the screen.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 2 = "Put your left finger on the 'E' response key for items that belong to the category '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;'.&lt;br/&gt;Put your right finger on the 'I' response key for items that belong to the category '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;'.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 3 = "Press the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;~nEach item belongs to only one category.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 4 = "This is the same task as the previous one.&lt;br/&gt;~n~nPress the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;~nEach item belongs to only one category.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 5 = "Attention! The labels have changed sides.&lt;br/&gt;~nPress the left 'E' key for '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 6 = "Press the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 7 = "This is the same task as the previous one.&lt;br/&gt;~nPress the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;~nEach item belongs to only one category.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: expressions used to assign the correct label to the left and right response keys&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/leftTarget = if(mod(script.groupid, 2) != 0){&lt;br/&gt;item.targetAlabel.item(1);&lt;br/&gt;} else {&lt;br/&gt;item.targetBlabel.item(1);&lt;br/&gt;};&lt;br/&gt;/rightTarget = if (mod(script.groupid, 2) != 0){&lt;br/&gt;item.targetBlabel.item(1);&lt;br/&gt;} else {&lt;br/&gt;item.targetAlabel.item(1);&lt;br/&gt;};&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text spacebar&amp;gt;&lt;br/&gt;/ items = ("Press the SPACE BAR to begin.")&lt;br/&gt;/ position = (50%, 90%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text errorReminder&amp;gt;&lt;br/&gt;/ items = ("If you make an error, a red X will appear. Press the other key to continue.")&lt;br/&gt;/ position = (50%, 95%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = gray&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;***********************************************************************&lt;br/&gt;Performance summary&lt;br/&gt;***********************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial summary&amp;gt;&lt;br/&gt;/ stimulustimes = [0=summary]&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;/ recorddata = false&lt;br/&gt;/ ontrialbegin = [values.magnitude = "little to no"]&lt;br/&gt;/ ontrialbegin = [if( abs(expressions.d) &amp;gt; 0.15 ) values.magnitude = "a slight"]&lt;br/&gt;/ ontrialbegin = [if( abs(expressions.d) &amp;gt; 0.35 ) values.magnitude = "a moderate"]&lt;br/&gt;/ ontrialbegin = [if( abs(expressions.d) &amp;gt;= 0.65 ) values.magnitude = "a strong"]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;gt;= 0.0) values.preferred = item.targetALabel.1]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;lt; 0.0) values.preferred = item.targetBLabel.1]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;lt; 0.0) values.notpreferred= item.targetALabel.1]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;gt;= 0.0) values.notpreferred= item.targetBLabel.1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text summary&amp;gt;&lt;br/&gt;/ items = ("Your IAT score (D) was &amp;lt;% expressions.d %&amp;gt;, which suggests &amp;lt;% values.magnitude %&amp;gt; automatic preference for &amp;lt;% values.preferred %&amp;gt; compared to &amp;lt;% values.notpreferred %&amp;gt;.~n~n~nPress the spacebar to complete this session.") &lt;br/&gt;/ size = (60%, 60%)&lt;br/&gt;/ hjustify = left&lt;br/&gt; &amp;lt;/text&amp;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.7.0 or higher&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 3.5%)&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ minimumversion = "5.0.7.0"&lt;br/&gt;/ canvasaspectratio = (4, 3)&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 file&lt;br/&gt;***********************&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, date, time, group, subject, blockcode, blocknum, trialcode, trialnum, response, correct, latency, &lt;br/&gt;stimulusnumber, stimulusitem, expressions.da, expressions.db, expressions.d, expressions.percentcorrect)&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;expressions.da, expressions.db, expressions.d, expressions.percentcorrect)&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;/ sum1a:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the first compatible block 1A&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response)&lt;br/&gt;/ sum2a:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the first incompatible block 2A&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response) &lt;br/&gt;/ sum1b:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the second compatible block 1B&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response)&lt;br/&gt;/ sum2b:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the second incompatible block 2B&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response) &lt;br/&gt;/ n1a:counts the number of trials in first compatible block 1A (except first one)&lt;br/&gt;/ n2a:counts the number of trials in first incompatible block 2A (except first one)&lt;br/&gt;/ n1b:counts the number of trials in second compatible block 1B&lt;br/&gt;/ n2b:counts the number of trials in second incompatible block 2B&lt;br/&gt;/ ss1a:tracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the first compatible block &lt;br/&gt;/ ss2atracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the first incompatible block&lt;br/&gt;/ ss1b:tracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the second compatible block &lt;br/&gt;/ ss2b:tracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the second incompatible block &lt;br/&gt;/ magnitude:stores the magnitude of the implicit preference: "little to no", "a slight", "a moderate", "a strong"&lt;br/&gt;/ preferred:stores the preferred target category&lt;br/&gt;/ notpreferred :stores the non preferred target category&lt;br/&gt;/ n_correct:counts all initial correct responses of all trials that count towards D score&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ completed = 0&lt;br/&gt;/ sum1a = 0&lt;br/&gt;/ sum2a = 0&lt;br/&gt;/ sum1b = 0&lt;br/&gt;/ sum2b = 0&lt;br/&gt;/ n1a = 0&lt;br/&gt;/ n2a = 0&lt;br/&gt;/ n1b = 0&lt;br/&gt;/ n2b = 0&lt;br/&gt;/ ss1a = 0&lt;br/&gt;/ ss2a = 0&lt;br/&gt;/ ss1b = 0&lt;br/&gt;/ ss2b = 0&lt;br/&gt;/ magnitude = "unknown"&lt;br/&gt;/ preferred = "unknown"&lt;br/&gt;/ notpreferred = "unknown"&lt;br/&gt;/ n_correct = 0&lt;br/&gt;/progresswidth = 0&lt;br/&gt;/instructionIndex = 0&amp;lt;/values&amp;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;* 1 is compatible, 2 is incompatible&lt;br/&gt;* a is first block, b is second block&lt;br/&gt;&lt;br/&gt;/ m1a:mean latencies of correct responses in first compatible block&lt;br/&gt;/ m2a:mean latencies of correct responses in first incompatible block&lt;br/&gt;/ m1b:mean latencies of correct responses in second compatible block&lt;br/&gt;/ m2b:mean latencies of correct responses in second incompatible block&lt;br/&gt;/ sd1a:standard deviation of latencies of correct responses in first compatible block&lt;br/&gt;/ sd2astandard deviation of latencies of correct responses in first incompatible block&lt;br/&gt;/ sd1b:standard deviation of latencies of correct responses in second compatible block&lt;br/&gt;/ sd2b:standard deviation of latencies of correct responses in second incompatible block&lt;br/&gt;/ sdastandarddeviation of latencies in first block&lt;br/&gt;/ sdb standarddeviation of latencies in second block&lt;br/&gt;/ da:D-score for first blocks&lt;br/&gt;/ db:D-score for second blocks&lt;br/&gt;/ d:overall D-score&lt;br/&gt;/ percentcorrect:&amp;nbsp;&amp;nbsp; calculates the overall percent correct score of initial responses of test trials of D-score qualifying latencies&lt;br/&gt;/progress:sets the length of the progress bar to %&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ m1a = values.sum1a / values.n1a&lt;br/&gt;/ m2a = values.sum2a / values.n2a&lt;br/&gt;/ m1b = values.sum1b / values.n1b&lt;br/&gt;/ m2b = values.sum2b / values.n2b&lt;br/&gt;/ sd1a = sqrt((values.ss1a - (values.n1a * (expressions.m1a * expressions.m1a))) / (values.n1a - 1))&lt;br/&gt;/ sd2a = sqrt((values.ss2a - (values.n2a * (expressions.m2a * expressions.m2a))) / (values.n2a - 1))&lt;br/&gt;/ sd1b = sqrt((values.ss1b - (values.n1b * (expressions.m1b * expressions.m1b))) / (values.n1b - 1))&lt;br/&gt;/ sd2b = sqrt((values.ss2b - (values.n2b * (expressions.m2b * expressions.m2b))) / (values.n2b - 1))&lt;br/&gt;/ sda = sqrt((((values.n1a - 1) * (expressions.sd1a * expressions.sd1a) + (values.n2a - 1) * (expressions.sd2a * expressions.sd2a)) + ((values.n1a + values.n2a) * ((expressions.m1a - expressions.m2a) * (expressions.m1a - expressions.m2a)) / 4) ) / (values.n1a + values.n2a - 1) )&lt;br/&gt;/ sdb = sqrt((((values.n1b - 1) * (expressions.sd1b * expressions.sd1b) + (values.n2b - 1) * (expressions.sd2b * expressions.sd2b)) + ((values.n1b + values.n2b) * ((expressions.m1b - expressions.m2b) * (expressions.m1b - expressions.m2b)) / 4) ) / (values.n1b + values.n2b - 1) )&lt;br/&gt;/ da = (m2a - m1a) / expressions.sda&lt;br/&gt;/ db = (m2b - m1b) / expressions.sdb&lt;br/&gt;/ d = (expressions.da + expressions.db) / 2&lt;br/&gt;/ percentcorrect = (values.n_correct/ (values.n1a + values.n1b + values.n2a + values.n2b)) * 100&lt;br/&gt;/progress = 1% * values.progresswidth&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;&amp;lt;text instructions&amp;gt;&lt;br/&gt;/ items = instructions&lt;br/&gt;/ position = (10%, 25%)&lt;br/&gt;/ halign = left&lt;br/&gt;/ valign = top&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ size = (80%, 50%)&lt;br/&gt;/ select = values.instructionIndex&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instructions&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.progresswidth += 10;&lt;br/&gt;values.instructionIndex += 1;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [1=instructions, spacebar, progressbar, progressbar_fill]&lt;br/&gt;/ correctresponse = (57)&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;STIMULI&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;shape progressbar&amp;gt;&lt;br/&gt;/shape = rectangle&lt;br/&gt;/ size = (70%, 2%)&lt;br/&gt;/ color = gray&lt;br/&gt;/ position = (15%, 95%)&lt;br/&gt;/ halign = left&lt;br/&gt;/ valign = top&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape progressbar_fill&amp;gt;&lt;br/&gt;/shape = rectangle&lt;br/&gt;/ size = (expressions.progress, 2%)&lt;br/&gt;/ color = green&lt;br/&gt;/ position = (15%, 95%)&lt;br/&gt;/ halign = left&lt;br/&gt;/ valign = top&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeA&amp;gt;&lt;br/&gt;/ items = attributeA&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeB&amp;gt;&lt;br/&gt;/ items = attributeB&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture targetB&amp;gt;&lt;br/&gt;/ items = targetB&lt;br/&gt;/ size = (20%, 20%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture targetA&amp;gt;&lt;br/&gt;/ items = targetA&lt;br/&gt;/ size = (20%, 20%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text error&amp;gt;&lt;br/&gt;/ position = (50%, 75%)&lt;br/&gt;/ items = ("X")&lt;br/&gt;/ color = red&lt;br/&gt;/ fontstyle = ("Arial", 10%, true)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeAleft&amp;gt;&lt;br/&gt;/ items = attributeAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeBright&amp;gt;&lt;br/&gt;/ items = attributeBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBleft&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBright&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBleftmixed&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBrightmixed&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetAleft&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetAright&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetAleftmixed&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetArightmixed&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&amp;lt;text orleft&amp;gt;&lt;br/&gt;/ items = ("or")&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 12%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text orright&amp;gt;&lt;br/&gt;/ items = ("or")&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 12%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetBleft&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = targetB, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetBright&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = targetB, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetAleft&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = targetA, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetAright&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = targetA, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&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 attributepractice&amp;gt;&lt;br/&gt;/ bgstim = (attributeAleft, attributeBright)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-21 = random(attributeA, attributeB);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetcompatiblepractice&amp;gt;&lt;br/&gt;/ bgstim = (targetAleft, targetBright)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-21 = random(targetAleft, targetBright);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetincompatiblepractice&amp;gt;&lt;br/&gt;/ bgstim = (targetAright, targetBleft)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-21 = random(targetAright, targetBleft);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetcompatiblepracticeswitch&amp;gt;&lt;br/&gt;/ bgstim = (targetAleft, targetBright)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-41 = random(targetAleft, targetBright);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetincompatiblepracticeswitch&amp;gt;&lt;br/&gt;/ bgstim = (targetAright, targetBleft)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-41 = random(targetAright, targetBleft);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block compatibletest1&amp;gt;&lt;br/&gt;/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [1=instructions;&lt;br/&gt;  3,5,7,9,11,13,15,17,19,21= random(targetAleft, targetBright);&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.sum1a =  values.sum1a + block.compatibletest1.latency;&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.n1a +=  1;&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.ss1a =  values.ss1a + (block.compatibletest1.latency * block.compatibletest1.latency);&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.n_correct += block.compatibletest1.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block compatibletest2&amp;gt;&lt;br/&gt;/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40 = random(targetAleft, targetBright);&lt;br/&gt;  1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.sum1b =  values.sum1b + block.compatibletest2.latency;&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.n1b += 1;&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.ss1b =  values.ss1b + (block.compatibletest2.latency * block.compatibletest2.latency);&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.n_correct += block.compatibletest2.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block incompatibletest1&amp;gt;&lt;br/&gt;/ bgstim = (targetBleftmixed, orleft, attributeAleft, targetArightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [1=instructions;&lt;br/&gt;  3,5,7,9,11,13,15,17,19,21 = random(targetBleft, targetAright);&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1) values.sum2a =  values.sum2a + block.incompatibletest1.latency;&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1 ) values.n2a +=  1;&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1 ) values.ss2a =  values.ss2a + (block.incompatibletest1.latency * block.incompatibletest1.latency);&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1 ) values.n_correct += block.incompatibletest1.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block incompatibletest2&amp;gt;&lt;br/&gt;/ bgstim = (targetBleftmixed, orleft, attributeAleft, targetArightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40 = random(targetBleft, targetAright);&lt;br/&gt;  1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.sum2b =  values.sum2b + block.incompatibletest2.latency;&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.n2b +=  1;&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.ss2b =  values.ss2b + (block.incompatibletest2.latency * block.incompatibletest2.latency);&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.n_correct += block.incompatibletest2.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block compatibletestinstructions&amp;gt;&lt;br/&gt;/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)&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 incompatibletestinstructions&amp;gt;&lt;br/&gt;/ bgstim = (targetBleftmixed, orleft, attributeAleft, targetArightmixed, orright, attributeBright)&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 summary&amp;gt;&lt;br/&gt;/skip = [parameters.showsummaryfeedback == false]&lt;br/&gt;/ trials = [1=summary]&lt;br/&gt;/ recorddata = false&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;Groupassignment is done by groupnumber&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/subjects = (1 of 2)&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetcompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=compatibletest1; &lt;br/&gt;4=compatibletestinstructions;&lt;br/&gt;5=compatibletest2; &lt;br/&gt;6=targetincompatiblepractice; &lt;br/&gt;7=incompatibletest1; &lt;br/&gt;8=incompatibletestinstructions;&lt;br/&gt;9=incompatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/subjects = (2 of 2)&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetincompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=incompatibletest1; &lt;br/&gt;4=incompatibletestinstructions;&lt;br/&gt;5=incompatibletest2; &lt;br/&gt;6=targetcompatiblepractice; &lt;br/&gt;7=compatibletest1; &lt;br/&gt;8=compatibletestinstructions; &lt;br/&gt;9=compatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;***********************************************************************&lt;br/&gt;Test Monkey&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;monkey&amp;gt;&lt;br/&gt;/ latencydistribution = normal(500, 100)&lt;br/&gt;/ percentcorrect = 90&lt;br/&gt;&amp;lt;/monkey&amp;gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;End of File&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 14 Nov 2018 11:03:13 GMT</pubDate><dc:creator>bkorsmo</dc:creator></item><item><title>RE: Assign groups to condition 1 and 3 only</title><link>https://forums.millisecond.com/Topic26069.aspx</link><description>&lt;div data-id="26068" class="if-quote-wrapper" unselectable="on" data-guid="1542222175981"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26068" 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="26068" 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="26068" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, November 14, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26068"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26067" class="if-quote-wrapper" unselectable="on" data-guid="1542222175981"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26067" 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="26067" 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="26067" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;bkorsmo - Tuesday, November 13, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26067"&gt;&lt;div class="if-quote-message-margin"&gt;I am running the Racism IAT which is counterbalanced between even and odd group numbers. I need to run subjects through the odd numbered, target compatible 1st, target incompatible 2nd, &amp;nbsp;every time. How do I run group numbers 1 and 3 only?&lt;br/&gt;&lt;br/&gt;I am scared to alter the Racism IAT script and do not how to perform URL parameters in Inquisit Web to assign group IDs.&lt;br/&gt;&lt;br/&gt;Is there an easy fix? Help, many thanks, Ben.&lt;br/&gt;&lt;br/&gt;raceiat.iqx:&lt;br/&gt;&lt;br/&gt;&amp;lt;usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;Race Implicit Attitude Test (IAT) - with pictures&lt;br/&gt;SCRIPT INFO&lt;br/&gt;&lt;br/&gt;Main Inquisit programming: Sean Draine (&lt;a href="mailto:seandr@millisecond.com"&gt;seandr@millisecond.com&lt;/a&gt;)&lt;br/&gt;last updated:  02-12-2018 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 © 02-12-2018 Millisecond Software&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;BACKGROUND INFO&lt;br/&gt;&lt;br/&gt;The Implicit Association Task (Greenwald, McGhee, &amp;amp; Schwartz, 1998) is a widely-used cognitive-behavioral paradigm&lt;br/&gt;that measures the strength of automatic (implicit) associations between concepts in people’s minds relying &lt;br/&gt;on latency measures in a simple sorting task.&lt;br/&gt; &lt;br/&gt;The strength of an association between concepts is measured by the standardized mean difference score of &lt;br/&gt;the 'hypothesis-inconsistent' pairings and 'hypothesis-consistent' pairings (d-score) (Greenwald, Nosek, &amp;amp; Banaji, 2003). &lt;br/&gt;In general, the higher the d-score the stronger is the association between the 'hypothesis-consistent' pairings &lt;br/&gt;(decided by researchers). Negative d-scores suggest a stronger association between the 'hypothesis-inconsistent' pairings.&lt;br/&gt;&lt;br/&gt;Inquisit calculates d-scores using the improved scoring algorithm as described in Greenwald et al (2003). &lt;br/&gt;Error trials are handled by requiring respondents to correct their responses according to recommendation (p.214).&lt;br/&gt;&lt;br/&gt;D-scores obtained with this script:&lt;br/&gt;Positive d-scores: support a stronger association between 'White American-Good' and 'Black American-Bad' than for the opposite pairings&lt;br/&gt;Negative d-scores: support a stronger association between 'Black American-Good' and 'White American-Bad' than for the opposite pairings&lt;br/&gt;&lt;br/&gt;References:&lt;br/&gt;&lt;br/&gt;general IAT:&lt;br/&gt;Greenwald, A. G., McGhee, D. E., &amp;amp; Schwartz, J. K. L. (1998). Measuring individual differences in implicit cognition: &lt;br/&gt;The Implicit Association Test. Journal of Personality and Social Psychology, 74, 1464-1480.&lt;br/&gt;&lt;br/&gt;Greenwald, A. G., Nosek, B. A., &amp;amp; Banaji, M. R. (2003). Understanding and Using the Implicit Association Test: &lt;br/&gt;I. An Improved Scoring Algorithm. Journal of Personality and Social Psychology, 85, 197-216.&lt;br/&gt;&lt;br/&gt;Stimuli: This script is based on the generic Inquisit IAT template and uses the pictures from Project Implicit's Race IAT&lt;br/&gt;(Retrieved from osf.io/y9hiq)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  *Task*&lt;br/&gt;Participants are asked to categorize attributes (e.g. "joyful"; "tragic") and target items (e.g pictures of Black Americans and White Americans) &lt;br/&gt;into predetermined categories via keystroke presses. The basic task is to press a left key (E) if an item (e.g. "joyful")&lt;br/&gt;belongs to the category presented on the left (e.g. "Good") and to press the right key (I) if the word (e.g. "tragic") &lt;br/&gt;belongs to the category ("Bad") presented on the right.&lt;br/&gt;For practice, participants sort items into the target categories "Black Americans vs. White Americans" and the attribute categories "Good vs. Bad".&lt;br/&gt;For the test, participants are asked to sort categories into the paired/combined categories (e.g. &lt;br/&gt;"White Americans OR Good" on the left vs. "Black Americans OR Bad" on the right). Pairings are reversed for a second test &lt;br/&gt;(e.g. "Black Americans OR Good" on the left vs. "White Americans OR Bad" on the right). Order is counterbalanced by groupnumber.  &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: 'RaceIAT_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;Note: group1/group2 counterbalance the order in which the pairings are run&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;response:the final trial response (scancodes of the keys pressed)&lt;br/&gt;Note: script saves the final and -by design- correct response&lt;br/&gt;correct:the accuracy of the initial response&lt;br/&gt;0 = initial response was incorrect and needed to be corrected&lt;br/&gt;1 = initial response is correct&lt;br/&gt;latency:the latency of the final (correct) response in ms&lt;br/&gt;stimulusnumber:the number of the current stimulus&lt;br/&gt;stimulusitem:the currently presented item&lt;br/&gt;expressions.da:d-score of the first short blocks&lt;br/&gt;expressions.db:d-score of the second long blocks&lt;br/&gt;expressions.d:overall d-score(non-weighted mean of the 2 d-scores)&lt;br/&gt;/ percentcorrect:&amp;nbsp;&amp;nbsp; the overall percent correct score of initial responses of test trials of D-score qualifying latencies&lt;br/&gt;&lt;br/&gt;(2) Summary data file: 'RaceIAT_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;expressions.da:d-score of the first blocks&lt;br/&gt;expressions.db:d-score of the second blocks&lt;br/&gt;expressions.d:overall d-score&lt;br/&gt;/ percentcorrect:&amp;nbsp;&amp;nbsp; the overall percent correct score of initial responses of test trials of D-score qualifying latencies&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;EXPERIMENTAL SET-UP&lt;br/&gt;&lt;br/&gt;Hypothesis-consistent pairings vs. hypothesis-inconsistent pairings; tested within-subjects &lt;br/&gt;=&amp;gt; order is counterbalanced by groupnumber assignment&lt;br/&gt;&lt;br/&gt;Block Sequence:&lt;br/&gt;1. Target Category sorting training&lt;br/&gt;2. Attribute sorting training&lt;br/&gt;3. 1. Test Block of hypothesis-consistent* pairings with 20 trials (half the participant start with inconsistent pairings)&lt;br/&gt;4. 2. Test Block of hypothesis-consistent pairings with 40 trials&lt;br/&gt;5. Target Category sorting training with targets switching sides&lt;br/&gt;6. 1. Test Block of hypothesis-inconsistent pairings with 20 trials&lt;br/&gt;7. 2. Test Block of hypothesis-inconsistent pairings with 40 trials&lt;br/&gt;&lt;br/&gt;In all Test Blocks:&lt;br/&gt;* attributes and targets alternate&lt;br/&gt;* attributes as well as targets are randomly selected without replacement&lt;br/&gt;&lt;br/&gt;Trial Sequence:&lt;br/&gt;Target -&amp;gt; until correct response -&amp;gt; ISI: 250ms (default)-&amp;gt; Target....STIMULI&lt;br/&gt;Stimuli can be edited under section Editable Stimuli&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;* start instruction page is provided as an html page. It automatically adapts to different images and category labels UNLESS&lt;br/&gt;the number of attributes and/or targets have been changed. In this case, changes have to be &lt;br/&gt;made to file "intro_iat.htm", so that the correct number of items are presented in the overview table.&lt;br/&gt;&lt;br/&gt;Example: instead of 8 words for target A, only 5 should be presented:&lt;br/&gt;&lt;br/&gt;in file "intro_iat.htm":&lt;br/&gt;change:&lt;br/&gt;&amp;lt;td&amp;gt;&amp;lt;%item.targetA.item(1)%&amp;gt;, &amp;lt;%item.targetA.item(2)%&amp;gt;, &amp;lt;%item.targetA.item(3)%&amp;gt;, &amp;lt;%item.targetA.item(4)%&amp;gt;, &lt;br/&gt;&amp;lt;%item.targetA.item(5)%&amp;gt;, &amp;lt;%item.targetA.item(6)%&amp;gt;, &amp;lt;%item.targetA.item(7)%&amp;gt;, &amp;lt;%item.targetA.item(8)%&amp;gt;&lt;br/&gt;&amp;lt;/td&amp;gt;&lt;br/&gt;&lt;br/&gt;To:&lt;br/&gt;&amp;lt;td&amp;gt;&amp;lt;%item.targetA.item(1)%&amp;gt;, &amp;lt;%item.targetA.item(2)%&amp;gt;, &amp;lt;%item.targetA.item(3)%&amp;gt;, &amp;lt;%item.targetA.item(4)%&amp;gt;, &lt;br/&gt;&amp;lt;%item.targetA.item(5)%&amp;gt;&lt;br/&gt;&amp;lt;/td&amp;gt;&lt;br/&gt;&lt;br/&gt;* item.instructions under section 'Editable Instructions' contains the the trial instructions&lt;br/&gt;The instructions adapt automatically if different attributes and targets are used.&lt;br/&gt;&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;The parameters you can change are:&lt;br/&gt;&lt;br/&gt;/showsummaryfeedback:set parameter showsummaryfeedback = true to display summary feedback to participants at the end (default)&lt;br/&gt;set parameter showsummaryfeedback = false if no summary feedback should be presented to participants&lt;br/&gt;/ISI:interstimulus interval (in ms) (default: 250ms)&lt;br/&gt;&amp;lt;/usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE PARAMETERS: change editable parameters here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/showsummaryfeedback = true&lt;br/&gt;/ISI = 250&lt;br/&gt;&amp;lt;/parameters&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;This sample IAT can be easily adapted to different target categories &lt;br/&gt;and attributes. To change the categories, you need only change the &lt;br/&gt;stimulus items and labels immediately below this line.&lt;br/&gt;&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;item attributeAlabel&amp;gt;&lt;br/&gt;/1 = "Good"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item attributeA&amp;gt;&lt;br/&gt;/1 = "Marvelous"&lt;br/&gt;/2 = "Superb"&lt;br/&gt;/3 = "Pleasure"&lt;br/&gt;/4 = "Beautiful"&lt;br/&gt;/5 = "Joyful"&lt;br/&gt;/6 = "Glorious"&lt;br/&gt;/7 = "Lovely"&lt;br/&gt;/8 = "Wonderful"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item attributeBlabel&amp;gt;&lt;br/&gt;/1 = "Bad"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item attributeB&amp;gt;&lt;br/&gt;/1 = "Tragic"&lt;br/&gt;/2 = "Horrible"&lt;br/&gt;/3 = "Agony"&lt;br/&gt;/4 = "Painful"&lt;br/&gt;/5 = "Terrible"&lt;br/&gt;/6 = "Awful"&lt;br/&gt;/7 = "Humiliate"&lt;br/&gt;/8 = "Nasty"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetAlabel&amp;gt;&lt;br/&gt;/1 = "White American"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetA&amp;gt;&lt;br/&gt;/1 = "wf2_nc.jpg"&lt;br/&gt;/2 = "wf3_nc.jpg"&lt;br/&gt;/3 = "wf6_nc.jpg"&lt;br/&gt;/4 = "wm1_nc.jpg"&lt;br/&gt;/5 = "wm4_nc.jpg"&lt;br/&gt;/6 = "wm6_nc.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetBlabel&amp;gt;&lt;br/&gt;/1 = "Black American"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetB&amp;gt;&lt;br/&gt;/1 = "bf14_nc.jpg"&lt;br/&gt;/2 = "bf23_nc.jpg"&lt;br/&gt;/3 = "bf56_nc.jpg"&lt;br/&gt;/4 = "bm14_nc.jpg"&lt;br/&gt;/5 = "bm23_nc.jpg"&lt;br/&gt;/6 = "bm56_nc.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&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;&amp;lt;instruct&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 2.8%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = (black)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage iatintro&amp;gt;&lt;br/&gt;/ file = "intro_pictureiat.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;/ 1 = "Put your left finger on the 'E' response key for items that belong to the category '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;Put your right finger on the 'I' response key for items that belong to the category '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;~nItems will appear one-by-one in the middle of the screen.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 2 = "Put your left finger on the 'E' response key for items that belong to the category '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;'.&lt;br/&gt;Put your right finger on the 'I' response key for items that belong to the category '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;'.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 3 = "Press the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;~nEach item belongs to only one category.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 4 = "This is the same task as the previous one.&lt;br/&gt;~n~nPress the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;~nEach item belongs to only one category.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 5 = "Attention! The labels have changed sides.&lt;br/&gt;~nPress the left 'E' key for '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 6 = "Press the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 7 = "This is the same task as the previous one.&lt;br/&gt;~nPress the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;~nEach item belongs to only one category.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: expressions used to assign the correct label to the left and right response keys&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/leftTarget = if(mod(script.groupid, 2) != 0){&lt;br/&gt;item.targetAlabel.item(1);&lt;br/&gt;} else {&lt;br/&gt;item.targetBlabel.item(1);&lt;br/&gt;};&lt;br/&gt;/rightTarget = if (mod(script.groupid, 2) != 0){&lt;br/&gt;item.targetBlabel.item(1);&lt;br/&gt;} else {&lt;br/&gt;item.targetAlabel.item(1);&lt;br/&gt;};&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text spacebar&amp;gt;&lt;br/&gt;/ items = ("Press the SPACE BAR to begin.")&lt;br/&gt;/ position = (50%, 90%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text errorReminder&amp;gt;&lt;br/&gt;/ items = ("If you make an error, a red X will appear. Press the other key to continue.")&lt;br/&gt;/ position = (50%, 95%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = gray&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;***********************************************************************&lt;br/&gt;Performance summary&lt;br/&gt;***********************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial summary&amp;gt;&lt;br/&gt;/ stimulustimes = [0=summary]&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;/ recorddata = false&lt;br/&gt;/ ontrialbegin = [values.magnitude = "little to no"]&lt;br/&gt;/ ontrialbegin = [if( abs(expressions.d) &amp;gt; 0.15 ) values.magnitude = "a slight"]&lt;br/&gt;/ ontrialbegin = [if( abs(expressions.d) &amp;gt; 0.35 ) values.magnitude = "a moderate"]&lt;br/&gt;/ ontrialbegin = [if( abs(expressions.d) &amp;gt;= 0.65 ) values.magnitude = "a strong"]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;gt;= 0.0) values.preferred = item.targetALabel.1]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;lt; 0.0) values.preferred = item.targetBLabel.1]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;lt; 0.0) values.notpreferred= item.targetALabel.1]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;gt;= 0.0) values.notpreferred= item.targetBLabel.1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text summary&amp;gt;&lt;br/&gt;/ items = ("Your IAT score (D) was &amp;lt;% expressions.d %&amp;gt;, which suggests &amp;lt;% values.magnitude %&amp;gt; automatic preference for &amp;lt;% values.preferred %&amp;gt; compared to &amp;lt;% values.notpreferred %&amp;gt;.~n~n~nPress the spacebar to complete this session.") &lt;br/&gt;/ size = (60%, 60%)&lt;br/&gt;/ hjustify = left&lt;br/&gt; &amp;lt;/text&amp;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.7.0 or higher&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 3.5%)&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ minimumversion = "5.0.7.0"&lt;br/&gt;/ canvasaspectratio = (4, 3)&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 file&lt;br/&gt;***********************&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, date, time, group, subject, blockcode, blocknum, trialcode, trialnum, response, correct, latency, &lt;br/&gt;stimulusnumber, stimulusitem, expressions.da, expressions.db, expressions.d, expressions.percentcorrect)&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;expressions.da, expressions.db, expressions.d, expressions.percentcorrect)&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;/ sum1a:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the first compatible block 1A&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response)&lt;br/&gt;/ sum2a:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the first incompatible block 2A&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response) &lt;br/&gt;/ sum1b:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the second compatible block 1B&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response)&lt;br/&gt;/ sum2b:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the second incompatible block 2B&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response) &lt;br/&gt;/ n1a:counts the number of trials in first compatible block 1A (except first one)&lt;br/&gt;/ n2a:counts the number of trials in first incompatible block 2A (except first one)&lt;br/&gt;/ n1b:counts the number of trials in second compatible block 1B&lt;br/&gt;/ n2b:counts the number of trials in second incompatible block 2B&lt;br/&gt;/ ss1a:tracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the first compatible block &lt;br/&gt;/ ss2atracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the first incompatible block&lt;br/&gt;/ ss1b:tracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the second compatible block &lt;br/&gt;/ ss2b:tracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the second incompatible block &lt;br/&gt;/ magnitude:stores the magnitude of the implicit preference: "little to no", "a slight", "a moderate", "a strong"&lt;br/&gt;/ preferred:stores the preferred target category&lt;br/&gt;/ notpreferred :stores the non preferred target category&lt;br/&gt;/ n_correct:counts all initial correct responses of all trials that count towards D score&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ completed = 0&lt;br/&gt;/ sum1a = 0&lt;br/&gt;/ sum2a = 0&lt;br/&gt;/ sum1b = 0&lt;br/&gt;/ sum2b = 0&lt;br/&gt;/ n1a = 0&lt;br/&gt;/ n2a = 0&lt;br/&gt;/ n1b = 0&lt;br/&gt;/ n2b = 0&lt;br/&gt;/ ss1a = 0&lt;br/&gt;/ ss2a = 0&lt;br/&gt;/ ss1b = 0&lt;br/&gt;/ ss2b = 0&lt;br/&gt;/ magnitude = "unknown"&lt;br/&gt;/ preferred = "unknown"&lt;br/&gt;/ notpreferred = "unknown"&lt;br/&gt;/ n_correct = 0&lt;br/&gt;/progresswidth = 0&lt;br/&gt;/instructionIndex = 0&amp;lt;/values&amp;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;* 1 is compatible, 2 is incompatible&lt;br/&gt;* a is first block, b is second block&lt;br/&gt;&lt;br/&gt;/ m1a:mean latencies of correct responses in first compatible block&lt;br/&gt;/ m2a:mean latencies of correct responses in first incompatible block&lt;br/&gt;/ m1b:mean latencies of correct responses in second compatible block&lt;br/&gt;/ m2b:mean latencies of correct responses in second incompatible block&lt;br/&gt;/ sd1a:standard deviation of latencies of correct responses in first compatible block&lt;br/&gt;/ sd2astandard deviation of latencies of correct responses in first incompatible block&lt;br/&gt;/ sd1b:standard deviation of latencies of correct responses in second compatible block&lt;br/&gt;/ sd2b:standard deviation of latencies of correct responses in second incompatible block&lt;br/&gt;/ sdastandarddeviation of latencies in first block&lt;br/&gt;/ sdb standarddeviation of latencies in second block&lt;br/&gt;/ da:D-score for first blocks&lt;br/&gt;/ db:D-score for second blocks&lt;br/&gt;/ d:overall D-score&lt;br/&gt;/ percentcorrect:&amp;nbsp;&amp;nbsp; calculates the overall percent correct score of initial responses of test trials of D-score qualifying latencies&lt;br/&gt;/progress:sets the length of the progress bar to %&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ m1a = values.sum1a / values.n1a&lt;br/&gt;/ m2a = values.sum2a / values.n2a&lt;br/&gt;/ m1b = values.sum1b / values.n1b&lt;br/&gt;/ m2b = values.sum2b / values.n2b&lt;br/&gt;/ sd1a = sqrt((values.ss1a - (values.n1a * (expressions.m1a * expressions.m1a))) / (values.n1a - 1))&lt;br/&gt;/ sd2a = sqrt((values.ss2a - (values.n2a * (expressions.m2a * expressions.m2a))) / (values.n2a - 1))&lt;br/&gt;/ sd1b = sqrt((values.ss1b - (values.n1b * (expressions.m1b * expressions.m1b))) / (values.n1b - 1))&lt;br/&gt;/ sd2b = sqrt((values.ss2b - (values.n2b * (expressions.m2b * expressions.m2b))) / (values.n2b - 1))&lt;br/&gt;/ sda = sqrt((((values.n1a - 1) * (expressions.sd1a * expressions.sd1a) + (values.n2a - 1) * (expressions.sd2a * expressions.sd2a)) + ((values.n1a + values.n2a) * ((expressions.m1a - expressions.m2a) * (expressions.m1a - expressions.m2a)) / 4) ) / (values.n1a + values.n2a - 1) )&lt;br/&gt;/ sdb = sqrt((((values.n1b - 1) * (expressions.sd1b * expressions.sd1b) + (values.n2b - 1) * (expressions.sd2b * expressions.sd2b)) + ((values.n1b + values.n2b) * ((expressions.m1b - expressions.m2b) * (expressions.m1b - expressions.m2b)) / 4) ) / (values.n1b + values.n2b - 1) )&lt;br/&gt;/ da = (m2a - m1a) / expressions.sda&lt;br/&gt;/ db = (m2b - m1b) / expressions.sdb&lt;br/&gt;/ d = (expressions.da + expressions.db) / 2&lt;br/&gt;/ percentcorrect = (values.n_correct/ (values.n1a + values.n1b + values.n2a + values.n2b)) * 100&lt;br/&gt;/progress = 1% * values.progresswidth&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;&amp;lt;text instructions&amp;gt;&lt;br/&gt;/ items = instructions&lt;br/&gt;/ position = (10%, 25%)&lt;br/&gt;/ halign = left&lt;br/&gt;/ valign = top&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ size = (80%, 50%)&lt;br/&gt;/ select = values.instructionIndex&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instructions&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.progresswidth += 10;&lt;br/&gt;values.instructionIndex += 1;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [1=instructions, spacebar, progressbar, progressbar_fill]&lt;br/&gt;/ correctresponse = (57)&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;STIMULI&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;shape progressbar&amp;gt;&lt;br/&gt;/shape = rectangle&lt;br/&gt;/ size = (70%, 2%)&lt;br/&gt;/ color = gray&lt;br/&gt;/ position = (15%, 95%)&lt;br/&gt;/ halign = left&lt;br/&gt;/ valign = top&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape progressbar_fill&amp;gt;&lt;br/&gt;/shape = rectangle&lt;br/&gt;/ size = (expressions.progress, 2%)&lt;br/&gt;/ color = green&lt;br/&gt;/ position = (15%, 95%)&lt;br/&gt;/ halign = left&lt;br/&gt;/ valign = top&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeA&amp;gt;&lt;br/&gt;/ items = attributeA&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeB&amp;gt;&lt;br/&gt;/ items = attributeB&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture targetB&amp;gt;&lt;br/&gt;/ items = targetB&lt;br/&gt;/ size = (20%, 20%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture targetA&amp;gt;&lt;br/&gt;/ items = targetA&lt;br/&gt;/ size = (20%, 20%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text error&amp;gt;&lt;br/&gt;/ position = (50%, 75%)&lt;br/&gt;/ items = ("X")&lt;br/&gt;/ color = red&lt;br/&gt;/ fontstyle = ("Arial", 10%, true)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeAleft&amp;gt;&lt;br/&gt;/ items = attributeAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeBright&amp;gt;&lt;br/&gt;/ items = attributeBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBleft&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBright&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBleftmixed&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBrightmixed&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetAleft&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetAright&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetAleftmixed&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetArightmixed&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&amp;lt;text orleft&amp;gt;&lt;br/&gt;/ items = ("or")&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 12%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text orright&amp;gt;&lt;br/&gt;/ items = ("or")&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 12%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetBleft&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = targetB, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetBright&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = targetB, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetAleft&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = targetA, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetAright&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = targetA, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&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 attributepractice&amp;gt;&lt;br/&gt;/ bgstim = (attributeAleft, attributeBright)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-21 = random(attributeA, attributeB);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetcompatiblepractice&amp;gt;&lt;br/&gt;/ bgstim = (targetAleft, targetBright)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-21 = random(targetAleft, targetBright);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetincompatiblepractice&amp;gt;&lt;br/&gt;/ bgstim = (targetAright, targetBleft)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-21 = random(targetAright, targetBleft);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetcompatiblepracticeswitch&amp;gt;&lt;br/&gt;/ bgstim = (targetAleft, targetBright)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-41 = random(targetAleft, targetBright);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetincompatiblepracticeswitch&amp;gt;&lt;br/&gt;/ bgstim = (targetAright, targetBleft)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-41 = random(targetAright, targetBleft);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block compatibletest1&amp;gt;&lt;br/&gt;/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [1=instructions;&lt;br/&gt;  3,5,7,9,11,13,15,17,19,21= random(targetAleft, targetBright);&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.sum1a =  values.sum1a + block.compatibletest1.latency;&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.n1a +=  1;&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.ss1a =  values.ss1a + (block.compatibletest1.latency * block.compatibletest1.latency);&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.n_correct += block.compatibletest1.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block compatibletest2&amp;gt;&lt;br/&gt;/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40 = random(targetAleft, targetBright);&lt;br/&gt;  1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.sum1b =  values.sum1b + block.compatibletest2.latency;&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.n1b += 1;&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.ss1b =  values.ss1b + (block.compatibletest2.latency * block.compatibletest2.latency);&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.n_correct += block.compatibletest2.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block incompatibletest1&amp;gt;&lt;br/&gt;/ bgstim = (targetBleftmixed, orleft, attributeAleft, targetArightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [1=instructions;&lt;br/&gt;  3,5,7,9,11,13,15,17,19,21 = random(targetBleft, targetAright);&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1) values.sum2a =  values.sum2a + block.incompatibletest1.latency;&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1 ) values.n2a +=  1;&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1 ) values.ss2a =  values.ss2a + (block.incompatibletest1.latency * block.incompatibletest1.latency);&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1 ) values.n_correct += block.incompatibletest1.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block incompatibletest2&amp;gt;&lt;br/&gt;/ bgstim = (targetBleftmixed, orleft, attributeAleft, targetArightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40 = random(targetBleft, targetAright);&lt;br/&gt;  1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.sum2b =  values.sum2b + block.incompatibletest2.latency;&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.n2b +=  1;&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.ss2b =  values.ss2b + (block.incompatibletest2.latency * block.incompatibletest2.latency);&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.n_correct += block.incompatibletest2.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block compatibletestinstructions&amp;gt;&lt;br/&gt;/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)&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 incompatibletestinstructions&amp;gt;&lt;br/&gt;/ bgstim = (targetBleftmixed, orleft, attributeAleft, targetArightmixed, orright, attributeBright)&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 summary&amp;gt;&lt;br/&gt;/skip = [parameters.showsummaryfeedback == false]&lt;br/&gt;/ trials = [1=summary]&lt;br/&gt;/ recorddata = false&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;Groupassignment is done by groupnumber&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/subjects = (1 of 2)&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetcompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=compatibletest1; &lt;br/&gt;4=compatibletestinstructions;&lt;br/&gt;5=compatibletest2; &lt;br/&gt;6=targetincompatiblepractice; &lt;br/&gt;7=incompatibletest1; &lt;br/&gt;8=incompatibletestinstructions;&lt;br/&gt;9=incompatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/subjects = (2 of 2)&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetincompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=incompatibletest1; &lt;br/&gt;4=incompatibletestinstructions;&lt;br/&gt;5=incompatibletest2; &lt;br/&gt;6=targetcompatiblepractice; &lt;br/&gt;7=compatibletest1; &lt;br/&gt;8=compatibletestinstructions; &lt;br/&gt;9=compatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;***********************************************************************&lt;br/&gt;Test Monkey&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;monkey&amp;gt;&lt;br/&gt;/ latencydistribution = normal(500, 100)&lt;br/&gt;/ percentcorrect = 90&lt;br/&gt;&amp;lt;/monkey&amp;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="26067"&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 you wish to run the first condition only, then the easiest way is to simply eliminate the 2nd &amp;lt;expt&amp;gt; element entirely; the &amp;lt;expt&amp;gt; elements are where condition assignment happens. The first &amp;lt;expt&amp;gt; runs the the compatible condition, first&amp;nbsp; so you'll want to keep that, the 2nd &amp;lt;expt&amp;gt; runs the incompatible condition first, that one you'll want to delete.&lt;br/&gt;&lt;br/&gt;I.e. in your script change &lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;&lt;strong&gt;/subjects = (1 of 2)&lt;/strong&gt;&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetcompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=compatibletest1; &lt;br/&gt;4=compatibletestinstructions;&lt;br/&gt;5=compatibletest2; &lt;br/&gt;6=targetincompatiblepractice; &lt;br/&gt;7=incompatibletest1; &lt;br/&gt;8=incompatibletestinstructions;&lt;br/&gt;9=incompatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/subjects = (2 of 2)&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetincompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=incompatibletest1; &lt;br/&gt;4=incompatibletestinstructions;&lt;br/&gt;5=incompatibletest2; &lt;br/&gt;6=targetcompatiblepractice; &lt;br/&gt;7=compatibletest1; &lt;br/&gt;8=compatibletestinstructions; &lt;br/&gt;9=compatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;to&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;&lt;strong&gt;/subjects = (1 of 1)&lt;/strong&gt;&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetcompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=compatibletest1; &lt;br/&gt;4=compatibletestinstructions;&lt;br/&gt;5=compatibletest2; &lt;br/&gt;6=targetincompatiblepractice; &lt;br/&gt;7=incompatibletest1; &lt;br/&gt;8=incompatibletestinstructions;&lt;br/&gt;9=incompatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;only.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26068"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks a million.....again Dave! Ben</description><pubDate>Wed, 14 Nov 2018 11:03:13 GMT</pubDate><dc:creator>bkorsmo</dc:creator></item><item><title>RE: Assign groups to condition 1 and 3 only</title><link>https://forums.millisecond.com/Topic26068.aspx</link><description>&lt;div data-id="26067" class="if-quote-wrapper" unselectable="on" data-guid="1542211626897"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26067" 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="26067" 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="26067" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;bkorsmo - Tuesday, November 13, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26067"&gt;&lt;div class="if-quote-message-margin"&gt;I am running the Racism IAT which is counterbalanced between even and odd group numbers. I need to run subjects through the odd numbered, target compatible 1st, target incompatible 2nd, &amp;nbsp;every time. How do I run group numbers 1 and 3 only?&lt;br/&gt;&lt;br/&gt;I am scared to alter the Racism IAT script and do not how to perform URL parameters in Inquisit Web to assign group IDs.&lt;br/&gt;&lt;br/&gt;Is there an easy fix? Help, many thanks, Ben.&lt;br/&gt;&lt;br/&gt;raceiat.iqx:&lt;br/&gt;&lt;br/&gt;&amp;lt;usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;Race Implicit Attitude Test (IAT) - with pictures&lt;br/&gt;SCRIPT INFO&lt;br/&gt;&lt;br/&gt;Main Inquisit programming: Sean Draine (&lt;a href="mailto:seandr@millisecond.com"&gt;seandr@millisecond.com&lt;/a&gt;)&lt;br/&gt;last updated:  02-12-2018 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 © 02-12-2018 Millisecond Software&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;BACKGROUND INFO&lt;br/&gt;&lt;br/&gt;The Implicit Association Task (Greenwald, McGhee, &amp;amp; Schwartz, 1998) is a widely-used cognitive-behavioral paradigm&lt;br/&gt;that measures the strength of automatic (implicit) associations between concepts in people’s minds relying &lt;br/&gt;on latency measures in a simple sorting task.&lt;br/&gt; &lt;br/&gt;The strength of an association between concepts is measured by the standardized mean difference score of &lt;br/&gt;the 'hypothesis-inconsistent' pairings and 'hypothesis-consistent' pairings (d-score) (Greenwald, Nosek, &amp;amp; Banaji, 2003). &lt;br/&gt;In general, the higher the d-score the stronger is the association between the 'hypothesis-consistent' pairings &lt;br/&gt;(decided by researchers). Negative d-scores suggest a stronger association between the 'hypothesis-inconsistent' pairings.&lt;br/&gt;&lt;br/&gt;Inquisit calculates d-scores using the improved scoring algorithm as described in Greenwald et al (2003). &lt;br/&gt;Error trials are handled by requiring respondents to correct their responses according to recommendation (p.214).&lt;br/&gt;&lt;br/&gt;D-scores obtained with this script:&lt;br/&gt;Positive d-scores: support a stronger association between 'White American-Good' and 'Black American-Bad' than for the opposite pairings&lt;br/&gt;Negative d-scores: support a stronger association between 'Black American-Good' and 'White American-Bad' than for the opposite pairings&lt;br/&gt;&lt;br/&gt;References:&lt;br/&gt;&lt;br/&gt;general IAT:&lt;br/&gt;Greenwald, A. G., McGhee, D. E., &amp;amp; Schwartz, J. K. L. (1998). Measuring individual differences in implicit cognition: &lt;br/&gt;The Implicit Association Test. Journal of Personality and Social Psychology, 74, 1464-1480.&lt;br/&gt;&lt;br/&gt;Greenwald, A. G., Nosek, B. A., &amp;amp; Banaji, M. R. (2003). Understanding and Using the Implicit Association Test: &lt;br/&gt;I. An Improved Scoring Algorithm. Journal of Personality and Social Psychology, 85, 197-216.&lt;br/&gt;&lt;br/&gt;Stimuli: This script is based on the generic Inquisit IAT template and uses the pictures from Project Implicit's Race IAT&lt;br/&gt;(Retrieved from osf.io/y9hiq)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;  *Task*&lt;br/&gt;Participants are asked to categorize attributes (e.g. "joyful"; "tragic") and target items (e.g pictures of Black Americans and White Americans) &lt;br/&gt;into predetermined categories via keystroke presses. The basic task is to press a left key (E) if an item (e.g. "joyful")&lt;br/&gt;belongs to the category presented on the left (e.g. "Good") and to press the right key (I) if the word (e.g. "tragic") &lt;br/&gt;belongs to the category ("Bad") presented on the right.&lt;br/&gt;For practice, participants sort items into the target categories "Black Americans vs. White Americans" and the attribute categories "Good vs. Bad".&lt;br/&gt;For the test, participants are asked to sort categories into the paired/combined categories (e.g. &lt;br/&gt;"White Americans OR Good" on the left vs. "Black Americans OR Bad" on the right). Pairings are reversed for a second test &lt;br/&gt;(e.g. "Black Americans OR Good" on the left vs. "White Americans OR Bad" on the right). Order is counterbalanced by groupnumber.  &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: 'RaceIAT_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;Note: group1/group2 counterbalance the order in which the pairings are run&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;response:the final trial response (scancodes of the keys pressed)&lt;br/&gt;Note: script saves the final and -by design- correct response&lt;br/&gt;correct:the accuracy of the initial response&lt;br/&gt;0 = initial response was incorrect and needed to be corrected&lt;br/&gt;1 = initial response is correct&lt;br/&gt;latency:the latency of the final (correct) response in ms&lt;br/&gt;stimulusnumber:the number of the current stimulus&lt;br/&gt;stimulusitem:the currently presented item&lt;br/&gt;expressions.da:d-score of the first short blocks&lt;br/&gt;expressions.db:d-score of the second long blocks&lt;br/&gt;expressions.d:overall d-score(non-weighted mean of the 2 d-scores)&lt;br/&gt;/ percentcorrect:&amp;nbsp;&amp;nbsp; the overall percent correct score of initial responses of test trials of D-score qualifying latencies&lt;br/&gt;&lt;br/&gt;(2) Summary data file: 'RaceIAT_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;expressions.da:d-score of the first blocks&lt;br/&gt;expressions.db:d-score of the second blocks&lt;br/&gt;expressions.d:overall d-score&lt;br/&gt;/ percentcorrect:&amp;nbsp;&amp;nbsp; the overall percent correct score of initial responses of test trials of D-score qualifying latencies&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;EXPERIMENTAL SET-UP&lt;br/&gt;&lt;br/&gt;Hypothesis-consistent pairings vs. hypothesis-inconsistent pairings; tested within-subjects &lt;br/&gt;=&amp;gt; order is counterbalanced by groupnumber assignment&lt;br/&gt;&lt;br/&gt;Block Sequence:&lt;br/&gt;1. Target Category sorting training&lt;br/&gt;2. Attribute sorting training&lt;br/&gt;3. 1. Test Block of hypothesis-consistent* pairings with 20 trials (half the participant start with inconsistent pairings)&lt;br/&gt;4. 2. Test Block of hypothesis-consistent pairings with 40 trials&lt;br/&gt;5. Target Category sorting training with targets switching sides&lt;br/&gt;6. 1. Test Block of hypothesis-inconsistent pairings with 20 trials&lt;br/&gt;7. 2. Test Block of hypothesis-inconsistent pairings with 40 trials&lt;br/&gt;&lt;br/&gt;In all Test Blocks:&lt;br/&gt;* attributes and targets alternate&lt;br/&gt;* attributes as well as targets are randomly selected without replacement&lt;br/&gt;&lt;br/&gt;Trial Sequence:&lt;br/&gt;Target -&amp;gt; until correct response -&amp;gt; ISI: 250ms (default)-&amp;gt; Target....STIMULI&lt;br/&gt;Stimuli can be edited under section Editable Stimuli&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;INSTRUCTIONS&lt;br/&gt;* start instruction page is provided as an html page. It automatically adapts to different images and category labels UNLESS&lt;br/&gt;the number of attributes and/or targets have been changed. In this case, changes have to be &lt;br/&gt;made to file "intro_iat.htm", so that the correct number of items are presented in the overview table.&lt;br/&gt;&lt;br/&gt;Example: instead of 8 words for target A, only 5 should be presented:&lt;br/&gt;&lt;br/&gt;in file "intro_iat.htm":&lt;br/&gt;change:&lt;br/&gt;&amp;lt;td&amp;gt;&amp;lt;%item.targetA.item(1)%&amp;gt;, &amp;lt;%item.targetA.item(2)%&amp;gt;, &amp;lt;%item.targetA.item(3)%&amp;gt;, &amp;lt;%item.targetA.item(4)%&amp;gt;, &lt;br/&gt;&amp;lt;%item.targetA.item(5)%&amp;gt;, &amp;lt;%item.targetA.item(6)%&amp;gt;, &amp;lt;%item.targetA.item(7)%&amp;gt;, &amp;lt;%item.targetA.item(8)%&amp;gt;&lt;br/&gt;&amp;lt;/td&amp;gt;&lt;br/&gt;&lt;br/&gt;To:&lt;br/&gt;&amp;lt;td&amp;gt;&amp;lt;%item.targetA.item(1)%&amp;gt;, &amp;lt;%item.targetA.item(2)%&amp;gt;, &amp;lt;%item.targetA.item(3)%&amp;gt;, &amp;lt;%item.targetA.item(4)%&amp;gt;, &lt;br/&gt;&amp;lt;%item.targetA.item(5)%&amp;gt;&lt;br/&gt;&amp;lt;/td&amp;gt;&lt;br/&gt;&lt;br/&gt;* item.instructions under section 'Editable Instructions' contains the the trial instructions&lt;br/&gt;The instructions adapt automatically if different attributes and targets are used.&lt;br/&gt;&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;The parameters you can change are:&lt;br/&gt;&lt;br/&gt;/showsummaryfeedback:set parameter showsummaryfeedback = true to display summary feedback to participants at the end (default)&lt;br/&gt;set parameter showsummaryfeedback = false if no summary feedback should be presented to participants&lt;br/&gt;/ISI:interstimulus interval (in ms) (default: 250ms)&lt;br/&gt;&amp;lt;/usermanual&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;EDITABLE PARAMETERS: change editable parameters here&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;/showsummaryfeedback = true&lt;br/&gt;/ISI = 250&lt;br/&gt;&amp;lt;/parameters&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;This sample IAT can be easily adapted to different target categories &lt;br/&gt;and attributes. To change the categories, you need only change the &lt;br/&gt;stimulus items and labels immediately below this line.&lt;br/&gt;&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;item attributeAlabel&amp;gt;&lt;br/&gt;/1 = "Good"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item attributeA&amp;gt;&lt;br/&gt;/1 = "Marvelous"&lt;br/&gt;/2 = "Superb"&lt;br/&gt;/3 = "Pleasure"&lt;br/&gt;/4 = "Beautiful"&lt;br/&gt;/5 = "Joyful"&lt;br/&gt;/6 = "Glorious"&lt;br/&gt;/7 = "Lovely"&lt;br/&gt;/8 = "Wonderful"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item attributeBlabel&amp;gt;&lt;br/&gt;/1 = "Bad"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item attributeB&amp;gt;&lt;br/&gt;/1 = "Tragic"&lt;br/&gt;/2 = "Horrible"&lt;br/&gt;/3 = "Agony"&lt;br/&gt;/4 = "Painful"&lt;br/&gt;/5 = "Terrible"&lt;br/&gt;/6 = "Awful"&lt;br/&gt;/7 = "Humiliate"&lt;br/&gt;/8 = "Nasty"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetAlabel&amp;gt;&lt;br/&gt;/1 = "White American"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetA&amp;gt;&lt;br/&gt;/1 = "wf2_nc.jpg"&lt;br/&gt;/2 = "wf3_nc.jpg"&lt;br/&gt;/3 = "wf6_nc.jpg"&lt;br/&gt;/4 = "wm1_nc.jpg"&lt;br/&gt;/5 = "wm4_nc.jpg"&lt;br/&gt;/6 = "wm6_nc.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetBlabel&amp;gt;&lt;br/&gt;/1 = "Black American"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item targetB&amp;gt;&lt;br/&gt;/1 = "bf14_nc.jpg"&lt;br/&gt;/2 = "bf23_nc.jpg"&lt;br/&gt;/3 = "bf56_nc.jpg"&lt;br/&gt;/4 = "bm14_nc.jpg"&lt;br/&gt;/5 = "bm23_nc.jpg"&lt;br/&gt;/6 = "bm56_nc.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&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;&amp;lt;instruct&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 2.8%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = (black)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;/ screencolor = black&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage iatintro&amp;gt;&lt;br/&gt;/ file = "intro_pictureiat.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item instructions&amp;gt;&lt;br/&gt;/ 1 = "Put your left finger on the 'E' response key for items that belong to the category '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;Put your right finger on the 'I' response key for items that belong to the category '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;~nItems will appear one-by-one in the middle of the screen.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 2 = "Put your left finger on the 'E' response key for items that belong to the category '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;'.&lt;br/&gt;Put your right finger on the 'I' response key for items that belong to the category '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;'.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 3 = "Press the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;~nEach item belongs to only one category.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 4 = "This is the same task as the previous one.&lt;br/&gt;~n~nPress the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;~nEach item belongs to only one category.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 5 = "Attention! The labels have changed sides.&lt;br/&gt;~nPress the left 'E' key for '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 6 = "Press the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;~nIf you make an error, a red X will appear - to continue, press the other response key.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&lt;br/&gt;/ 7 = "This is the same task as the previous one.&lt;br/&gt;~nPress the left 'E' key for '&amp;lt;%item.attributeAlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.rightTarget%&amp;gt;'.&lt;br/&gt;Press the right 'I' key for '&amp;lt;%item.attributeBlabel.item(1)%&amp;gt;' and '&amp;lt;%expressions.leftTarget%&amp;gt;'.&lt;br/&gt;~nEach item belongs to only one category.&lt;br/&gt;~nGo as fast as you can while making as few errors as possible."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: expressions used to assign the correct label to the left and right response keys&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/leftTarget = if(mod(script.groupid, 2) != 0){&lt;br/&gt;item.targetAlabel.item(1);&lt;br/&gt;} else {&lt;br/&gt;item.targetBlabel.item(1);&lt;br/&gt;};&lt;br/&gt;/rightTarget = if (mod(script.groupid, 2) != 0){&lt;br/&gt;item.targetBlabel.item(1);&lt;br/&gt;} else {&lt;br/&gt;item.targetAlabel.item(1);&lt;br/&gt;};&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text spacebar&amp;gt;&lt;br/&gt;/ items = ("Press the SPACE BAR to begin.")&lt;br/&gt;/ position = (50%, 90%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text errorReminder&amp;gt;&lt;br/&gt;/ items = ("If you make an error, a red X will appear. Press the other key to continue.")&lt;br/&gt;/ position = (50%, 95%)&lt;br/&gt;/ valign = bottom&lt;br/&gt;/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = gray&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;***********************************************************************&lt;br/&gt;Performance summary&lt;br/&gt;***********************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial summary&amp;gt;&lt;br/&gt;/ stimulustimes = [0=summary]&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;/ recorddata = false&lt;br/&gt;/ ontrialbegin = [values.magnitude = "little to no"]&lt;br/&gt;/ ontrialbegin = [if( abs(expressions.d) &amp;gt; 0.15 ) values.magnitude = "a slight"]&lt;br/&gt;/ ontrialbegin = [if( abs(expressions.d) &amp;gt; 0.35 ) values.magnitude = "a moderate"]&lt;br/&gt;/ ontrialbegin = [if( abs(expressions.d) &amp;gt;= 0.65 ) values.magnitude = "a strong"]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;gt;= 0.0) values.preferred = item.targetALabel.1]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;lt; 0.0) values.preferred = item.targetBLabel.1]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;lt; 0.0) values.notpreferred= item.targetALabel.1]&lt;br/&gt;/ ontrialbegin = [if (expressions.d &amp;gt;= 0.0) values.notpreferred= item.targetBLabel.1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text summary&amp;gt;&lt;br/&gt;/ items = ("Your IAT score (D) was &amp;lt;% expressions.d %&amp;gt;, which suggests &amp;lt;% values.magnitude %&amp;gt; automatic preference for &amp;lt;% values.preferred %&amp;gt; compared to &amp;lt;% values.notpreferred %&amp;gt;.~n~n~nPress the spacebar to complete this session.") &lt;br/&gt;/ size = (60%, 60%)&lt;br/&gt;/ hjustify = left&lt;br/&gt; &amp;lt;/text&amp;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.7.0 or higher&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 3.5%)&lt;br/&gt;/ screencolor = black&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ minimumversion = "5.0.7.0"&lt;br/&gt;/ canvasaspectratio = (4, 3)&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 file&lt;br/&gt;***********************&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, date, time, group, subject, blockcode, blocknum, trialcode, trialnum, response, correct, latency, &lt;br/&gt;stimulusnumber, stimulusitem, expressions.da, expressions.db, expressions.d, expressions.percentcorrect)&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;expressions.da, expressions.db, expressions.d, expressions.percentcorrect)&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;/ sum1a:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the first compatible block 1A&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response)&lt;br/&gt;/ sum2a:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the first incompatible block 2A&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response) &lt;br/&gt;/ sum1b:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the second compatible block 1B&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response)&lt;br/&gt;/ sum2b:tracks the sum of the latencies to correct responses (latencies &amp;lt;= 10000ms) for the second incompatible block 2B&lt;br/&gt;Note: by design, all final trial responses are correct (regardless of accuracy of initial response) &lt;br/&gt;/ n1a:counts the number of trials in first compatible block 1A (except first one)&lt;br/&gt;/ n2a:counts the number of trials in first incompatible block 2A (except first one)&lt;br/&gt;/ n1b:counts the number of trials in second compatible block 1B&lt;br/&gt;/ n2b:counts the number of trials in second incompatible block 2B&lt;br/&gt;/ ss1a:tracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the first compatible block &lt;br/&gt;/ ss2atracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the first incompatible block&lt;br/&gt;/ ss1b:tracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the second compatible block &lt;br/&gt;/ ss2b:tracks the sum of the squared latencies to correct responses (latencies &amp;lt;= 10000ms) in the second incompatible block &lt;br/&gt;/ magnitude:stores the magnitude of the implicit preference: "little to no", "a slight", "a moderate", "a strong"&lt;br/&gt;/ preferred:stores the preferred target category&lt;br/&gt;/ notpreferred :stores the non preferred target category&lt;br/&gt;/ n_correct:counts all initial correct responses of all trials that count towards D score&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ completed = 0&lt;br/&gt;/ sum1a = 0&lt;br/&gt;/ sum2a = 0&lt;br/&gt;/ sum1b = 0&lt;br/&gt;/ sum2b = 0&lt;br/&gt;/ n1a = 0&lt;br/&gt;/ n2a = 0&lt;br/&gt;/ n1b = 0&lt;br/&gt;/ n2b = 0&lt;br/&gt;/ ss1a = 0&lt;br/&gt;/ ss2a = 0&lt;br/&gt;/ ss1b = 0&lt;br/&gt;/ ss2b = 0&lt;br/&gt;/ magnitude = "unknown"&lt;br/&gt;/ preferred = "unknown"&lt;br/&gt;/ notpreferred = "unknown"&lt;br/&gt;/ n_correct = 0&lt;br/&gt;/progresswidth = 0&lt;br/&gt;/instructionIndex = 0&amp;lt;/values&amp;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;* 1 is compatible, 2 is incompatible&lt;br/&gt;* a is first block, b is second block&lt;br/&gt;&lt;br/&gt;/ m1a:mean latencies of correct responses in first compatible block&lt;br/&gt;/ m2a:mean latencies of correct responses in first incompatible block&lt;br/&gt;/ m1b:mean latencies of correct responses in second compatible block&lt;br/&gt;/ m2b:mean latencies of correct responses in second incompatible block&lt;br/&gt;/ sd1a:standard deviation of latencies of correct responses in first compatible block&lt;br/&gt;/ sd2astandard deviation of latencies of correct responses in first incompatible block&lt;br/&gt;/ sd1b:standard deviation of latencies of correct responses in second compatible block&lt;br/&gt;/ sd2b:standard deviation of latencies of correct responses in second incompatible block&lt;br/&gt;/ sdastandarddeviation of latencies in first block&lt;br/&gt;/ sdb standarddeviation of latencies in second block&lt;br/&gt;/ da:D-score for first blocks&lt;br/&gt;/ db:D-score for second blocks&lt;br/&gt;/ d:overall D-score&lt;br/&gt;/ percentcorrect:&amp;nbsp;&amp;nbsp; calculates the overall percent correct score of initial responses of test trials of D-score qualifying latencies&lt;br/&gt;/progress:sets the length of the progress bar to %&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ m1a = values.sum1a / values.n1a&lt;br/&gt;/ m2a = values.sum2a / values.n2a&lt;br/&gt;/ m1b = values.sum1b / values.n1b&lt;br/&gt;/ m2b = values.sum2b / values.n2b&lt;br/&gt;/ sd1a = sqrt((values.ss1a - (values.n1a * (expressions.m1a * expressions.m1a))) / (values.n1a - 1))&lt;br/&gt;/ sd2a = sqrt((values.ss2a - (values.n2a * (expressions.m2a * expressions.m2a))) / (values.n2a - 1))&lt;br/&gt;/ sd1b = sqrt((values.ss1b - (values.n1b * (expressions.m1b * expressions.m1b))) / (values.n1b - 1))&lt;br/&gt;/ sd2b = sqrt((values.ss2b - (values.n2b * (expressions.m2b * expressions.m2b))) / (values.n2b - 1))&lt;br/&gt;/ sda = sqrt((((values.n1a - 1) * (expressions.sd1a * expressions.sd1a) + (values.n2a - 1) * (expressions.sd2a * expressions.sd2a)) + ((values.n1a + values.n2a) * ((expressions.m1a - expressions.m2a) * (expressions.m1a - expressions.m2a)) / 4) ) / (values.n1a + values.n2a - 1) )&lt;br/&gt;/ sdb = sqrt((((values.n1b - 1) * (expressions.sd1b * expressions.sd1b) + (values.n2b - 1) * (expressions.sd2b * expressions.sd2b)) + ((values.n1b + values.n2b) * ((expressions.m1b - expressions.m2b) * (expressions.m1b - expressions.m2b)) / 4) ) / (values.n1b + values.n2b - 1) )&lt;br/&gt;/ da = (m2a - m1a) / expressions.sda&lt;br/&gt;/ db = (m2b - m1b) / expressions.sdb&lt;br/&gt;/ d = (expressions.da + expressions.db) / 2&lt;br/&gt;/ percentcorrect = (values.n_correct/ (values.n1a + values.n1b + values.n2a + values.n2b)) * 100&lt;br/&gt;/progress = 1% * values.progresswidth&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;&amp;lt;text instructions&amp;gt;&lt;br/&gt;/ items = instructions&lt;br/&gt;/ position = (10%, 25%)&lt;br/&gt;/ halign = left&lt;br/&gt;/ valign = top&lt;br/&gt;/ hjustify = left&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ size = (80%, 50%)&lt;br/&gt;/ select = values.instructionIndex&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instructions&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.progresswidth += 10;&lt;br/&gt;values.instructionIndex += 1;&lt;br/&gt;]&lt;br/&gt;/ stimulustimes = [1=instructions, spacebar, progressbar, progressbar_fill]&lt;br/&gt;/ correctresponse = (57)&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;STIMULI&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;shape progressbar&amp;gt;&lt;br/&gt;/shape = rectangle&lt;br/&gt;/ size = (70%, 2%)&lt;br/&gt;/ color = gray&lt;br/&gt;/ position = (15%, 95%)&lt;br/&gt;/ halign = left&lt;br/&gt;/ valign = top&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape progressbar_fill&amp;gt;&lt;br/&gt;/shape = rectangle&lt;br/&gt;/ size = (expressions.progress, 2%)&lt;br/&gt;/ color = green&lt;br/&gt;/ position = (15%, 95%)&lt;br/&gt;/ halign = left&lt;br/&gt;/ valign = top&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeA&amp;gt;&lt;br/&gt;/ items = attributeA&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeB&amp;gt;&lt;br/&gt;/ items = attributeB&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture targetB&amp;gt;&lt;br/&gt;/ items = targetB&lt;br/&gt;/ size = (20%, 20%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture targetA&amp;gt;&lt;br/&gt;/ items = targetA&lt;br/&gt;/ size = (20%, 20%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text error&amp;gt;&lt;br/&gt;/ position = (50%, 75%)&lt;br/&gt;/ items = ("X")&lt;br/&gt;/ color = red&lt;br/&gt;/ fontstyle = ("Arial", 10%, true)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeAleft&amp;gt;&lt;br/&gt;/ items = attributeAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text attributeBright&amp;gt;&lt;br/&gt;/ items = attributeBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 5%)&lt;br/&gt;/ txcolor = green&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBleft&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBright&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBleftmixed&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetBrightmixed&amp;gt;&lt;br/&gt;/ items = targetBlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetAleft&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetAright&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 5%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetAleftmixed&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text targetArightmixed&amp;gt;&lt;br/&gt;/ items = targetAlabel&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 19%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&amp;lt;text orleft&amp;gt;&lt;br/&gt;/ items = ("or")&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = left&lt;br/&gt;/ position = (5%, 12%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text orright&amp;gt;&lt;br/&gt;/ items = ("or")&lt;br/&gt;/ valign = top&lt;br/&gt;/ halign = right&lt;br/&gt;/ position = (95%, 12%)&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;TRIALS &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetBleft&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = targetB, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetBright&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = targetB, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetAleft&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = targetA, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial targetAright&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = targetA, errorReminder]&lt;br/&gt;/ posttrialpause = parameters.ISI&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 attributepractice&amp;gt;&lt;br/&gt;/ bgstim = (attributeAleft, attributeBright)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-21 = random(attributeA, attributeB);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetcompatiblepractice&amp;gt;&lt;br/&gt;/ bgstim = (targetAleft, targetBright)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-21 = random(targetAleft, targetBright);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetincompatiblepractice&amp;gt;&lt;br/&gt;/ bgstim = (targetAright, targetBleft)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-21 = random(targetAright, targetBleft);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetcompatiblepracticeswitch&amp;gt;&lt;br/&gt;/ bgstim = (targetAleft, targetBright)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-41 = random(targetAleft, targetBright);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block targetincompatiblepracticeswitch&amp;gt;&lt;br/&gt;/ bgstim = (targetAright, targetBleft)&lt;br/&gt;/ trials = [&lt;br/&gt;1=instructions;&lt;br/&gt;2-41 = random(targetAright, targetBleft);&lt;br/&gt;]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block compatibletest1&amp;gt;&lt;br/&gt;/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [1=instructions;&lt;br/&gt;  3,5,7,9,11,13,15,17,19,21= random(targetAleft, targetBright);&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.sum1a =  values.sum1a + block.compatibletest1.latency;&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.n1a +=  1;&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.ss1a =  values.ss1a + (block.compatibletest1.latency * block.compatibletest1.latency);&lt;br/&gt;if(block.compatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.compatibletest1.currenttrialnumber != 1 ) values.n_correct += block.compatibletest1.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block compatibletest2&amp;gt;&lt;br/&gt;/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40 = random(targetAleft, targetBright);&lt;br/&gt;  1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.sum1b =  values.sum1b + block.compatibletest2.latency;&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.n1b += 1;&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.ss1b =  values.ss1b + (block.compatibletest2.latency * block.compatibletest2.latency);&lt;br/&gt;if(block.compatibletest2.latency  &amp;lt;= 10000) values.n_correct += block.compatibletest2.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block incompatibletest1&amp;gt;&lt;br/&gt;/ bgstim = (targetBleftmixed, orleft, attributeAleft, targetArightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [1=instructions;&lt;br/&gt;  3,5,7,9,11,13,15,17,19,21 = random(targetBleft, targetAright);&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1) values.sum2a =  values.sum2a + block.incompatibletest1.latency;&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1 ) values.n2a +=  1;&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1 ) values.ss2a =  values.ss2a + (block.incompatibletest1.latency * block.incompatibletest1.latency);&lt;br/&gt;if(block.incompatibletest1.latency  &amp;lt;= 10000 &amp;amp;&amp;amp; block.incompatibletest1.currenttrialnumber != 1 ) values.n_correct += block.incompatibletest1.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block incompatibletest2&amp;gt;&lt;br/&gt;/ bgstim = (targetBleftmixed, orleft, attributeAleft, targetArightmixed, orright, attributeBright)&lt;br/&gt;/ trials = [&lt;br/&gt;  2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40 = random(targetBleft, targetAright);&lt;br/&gt;  1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.sum2b =  values.sum2b + block.incompatibletest2.latency;&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.n2b +=  1;&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.ss2b =  values.ss2b + (block.incompatibletest2.latency * block.incompatibletest2.latency);&lt;br/&gt;if(block.incompatibletest2.latency  &amp;lt;= 10000) values.n_correct += block.incompatibletest2.correct;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block compatibletestinstructions&amp;gt;&lt;br/&gt;/ bgstim = (targetAleftmixed, orleft, attributeAleft, targetBrightmixed, orright, attributeBright)&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 incompatibletestinstructions&amp;gt;&lt;br/&gt;/ bgstim = (targetBleftmixed, orleft, attributeAleft, targetArightmixed, orright, attributeBright)&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 summary&amp;gt;&lt;br/&gt;/skip = [parameters.showsummaryfeedback == false]&lt;br/&gt;/ trials = [1=summary]&lt;br/&gt;/ recorddata = false&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;Groupassignment is done by groupnumber&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/subjects = (1 of 2)&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetcompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=compatibletest1; &lt;br/&gt;4=compatibletestinstructions;&lt;br/&gt;5=compatibletest2; &lt;br/&gt;6=targetincompatiblepractice; &lt;br/&gt;7=incompatibletest1; &lt;br/&gt;8=incompatibletestinstructions;&lt;br/&gt;9=incompatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/subjects = (2 of 2)&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetincompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=incompatibletest1; &lt;br/&gt;4=incompatibletestinstructions;&lt;br/&gt;5=incompatibletest2; &lt;br/&gt;6=targetcompatiblepractice; &lt;br/&gt;7=compatibletest1; &lt;br/&gt;8=compatibletestinstructions; &lt;br/&gt;9=compatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;***********************************************************************&lt;br/&gt;Test Monkey&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;monkey&amp;gt;&lt;br/&gt;/ latencydistribution = normal(500, 100)&lt;br/&gt;/ percentcorrect = 90&lt;br/&gt;&amp;lt;/monkey&amp;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="26067"&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 you wish to run the first condition only, then the easiest way is to simply eliminate the 2nd &amp;lt;expt&amp;gt; element entirely; the &amp;lt;expt&amp;gt; elements are where condition assignment happens. The first &amp;lt;expt&amp;gt; runs the the compatible condition, first&amp;nbsp; so you'll want to keep that, the 2nd &amp;lt;expt&amp;gt; runs the incompatible condition first, that one you'll want to delete.&lt;br/&gt;&lt;br/&gt;I.e. in your script change &lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;&lt;strong&gt;/subjects = (1 of 2)&lt;/strong&gt;&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetcompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=compatibletest1; &lt;br/&gt;4=compatibletestinstructions;&lt;br/&gt;5=compatibletest2; &lt;br/&gt;6=targetincompatiblepractice; &lt;br/&gt;7=incompatibletest1; &lt;br/&gt;8=incompatibletestinstructions;&lt;br/&gt;9=incompatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;/subjects = (2 of 2)&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetincompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=incompatibletest1; &lt;br/&gt;4=incompatibletestinstructions;&lt;br/&gt;5=incompatibletest2; &lt;br/&gt;6=targetcompatiblepractice; &lt;br/&gt;7=compatibletest1; &lt;br/&gt;8=compatibletestinstructions; &lt;br/&gt;9=compatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;to&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (iatintro)&lt;br/&gt;&lt;strong&gt;/subjects = (1 of 1)&lt;/strong&gt;&lt;br/&gt;/groupassignment = groupnumber&lt;br/&gt;/ blocks = [&lt;br/&gt;1=targetcompatiblepractice; &lt;br/&gt;2=attributepractice; &lt;br/&gt;3=compatibletest1; &lt;br/&gt;4=compatibletestinstructions;&lt;br/&gt;5=compatibletest2; &lt;br/&gt;6=targetincompatiblepractice; &lt;br/&gt;7=incompatibletest1; &lt;br/&gt;8=incompatibletestinstructions;&lt;br/&gt;9=incompatibletest2; &lt;br/&gt;10=summary;&lt;br/&gt;]&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;only.&lt;br/&gt;</description><pubDate>Wed, 14 Nov 2018 08:10:48 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>