﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » Branching out if subject underperforms</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 15 May 2026 15:23:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic18969.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;I'm having trouble figuring out how to send underperforming subjects to a page that gives them their % accuracy. I've tried onblockend and branch but nothing seems to work. I also want them to pass a capture check, and if they don't, for that to send them to another page. Here are the relevant portions of script:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[quote]&lt;br/&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;block sliderintro&amp;gt;&lt;br/&gt;/ trials = [1-2 = instructions_1; 3 = milk_slide_pic; 4 = instructions_2]&lt;br/&gt;/ bgstim = (spacebar)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;block slider&amp;gt;&lt;br/&gt;/ trials = [ 1-38 = noreplace(capture1, capture2,&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc,&lt;br/&gt;nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc)]&lt;br/&gt;/ onblockend = [if (values.capture &amp;lt; 4) block.nocapture else block.stimintro]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;block stimintro&amp;gt;&lt;br/&gt;/ trials = [1 = preinstructions_3; 2 = instructions_3; 3-4 = instructions_3a; 5-6 = instructions_3b; 7-10 = instructions_3c; 11 = probe_practice1; 12 = probe_practice2; 13 = instructions_4]&lt;br/&gt;/ bgstim = (spacebar)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;block stimuli&amp;gt;&lt;br/&gt;/ trials = [1-36 = noreplace(&lt;br/&gt;alcoholAL, alcoholAL, alcoholAL, alcoholAL, alcoholAR, alcoholAR, alcoholAR, alcoholAR,&lt;br/&gt;alcoholAL, alcoholAL, alcoholAL, alcoholAL, alcoholAL, alcoholAR, alcoholAR, alcoholAR, alcoholAR, alcoholAR,&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;alcoholBL, alcoholBL, alcoholBL, alcoholBL, alcoholBR, alcoholBR, alcoholBR, alcoholBR, alcoholBR, alcoholBR,&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;alcoholBL, alcoholBL, alcoholBL, alcoholBL, alcoholBL, alcoholBR, alcoholBR, alcoholBR)]&lt;br/&gt;/ onblockend = [if (expressions.alc_percent &amp;lt; 75 || expressions.nonalc_percent &amp;lt; 75) block.underaccuracy else block.mturk]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;block nocapture&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ trials = [1 = nocapture]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;/block&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;block underaccuracy&amp;gt;&lt;br/&gt;/ trials = [1 = underaccuracy]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;block mturk&amp;gt;&lt;br/&gt;/ trials = [1 = mturk]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1 = sliderintro; 2 = slider]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;------------------------------&lt;/span&gt;&lt;wbr style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;-------------------&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&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;&amp;nbsp; VALUES/EXPR&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;------------------------------&lt;/span&gt;&lt;wbr style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;-------------------&lt;/span&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ probe_alc_pos = 0&lt;br/&gt;/ probe_nonalc_pos = 0&lt;br/&gt;/ probe_arrow_pos = 0&lt;br/&gt;/ probe_alc_rt_sum = 0&lt;br/&gt;/ probe_nonalc_rt_sum = 0&lt;br/&gt;/ image_cat = 0&lt;br/&gt;/ image_name = 0&lt;br/&gt;/ alc_enjoy_sum = 0&lt;br/&gt;/ alc_want_sum = 0&lt;br/&gt;/ alc_num = 0&lt;br/&gt;/ alc_rt_sum = 0&lt;br/&gt;/ nonalc_enjoy_sum = 0&lt;br/&gt;/ nonalc_want_sum = 0&lt;br/&gt;/ nonalc_num = 0&lt;br/&gt;/ nonalc_rt_sum = 0&lt;br/&gt;/ alc_probe_sum = 0&lt;br/&gt;/ nonalc_probe_sum = 0&lt;br/&gt;/ slider_correct = 0&lt;br/&gt;/ capture = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ alc_enjoy_meanrating = (values.alc_enjoy_sum/values.&lt;wbr&gt;alc_num)&lt;br/&gt;/ alc_want_meanrating = (values.alc_want_sum/values.&lt;wbr&gt;alc_num)&lt;br/&gt;/ alc_rating_meanRT = (values.alc_rt_sum/values.alc_&lt;wbr&gt;num)&lt;br/&gt;/ nonalc_enjoy_meanrating = (values.nonalc_enjoy_sum/&lt;wbr&gt;values.nonalc_num)&lt;br/&gt;/ nonalc_want_meanrating = (values.nonalc_want_sum/&lt;wbr&gt;values.nonalc_num)&lt;br/&gt;/ nonalc_rating_meanRT = (values.nonalc_rt_sum/values.&lt;wbr&gt;nonalc_num)&lt;br/&gt;/ alc_probe_correct = (values.alc_probe_sum/18)&lt;br/&gt;/ nonalc_probe_correct = (values.nonalc_probe_sum/18)&lt;br/&gt;/ alc_probe_meanRT = (values.probe_alc_rt_sum/&lt;wbr&gt;values.alc_probe_sum)&lt;br/&gt;/ nonalc_probe_meanRT = (values.probe_nonalc_rt_sum/&lt;wbr&gt;values.nonalc_probe_sum)&lt;br/&gt;/ alc_percent = round(expressions.alc_probe_&lt;wbr&gt;correct*100)&lt;br/&gt;/ nonalc_percent = round(expressions.nonalc_&lt;wbr&gt;probe_correct*100)&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;&amp;lt;trial alcoholAL&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ posttrialpause = 1000&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ stimulustimes = [0 = fixation; 500 = erasefixation, alcoholL_arrowL, nonalcR_arrowL, arrowL; 700 = blankscreen, drink_nonalc, drink_alc]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ validresponse = (200, 208)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ iscorrectresponse = [(text.drink_alc.vposition == 35% &amp;amp;&amp;amp; trial.alcoholAL.response == 200) || (text.drink_alc.vposition == 65% &amp;amp;&amp;amp; trial.alcoholAL.response == 208)]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ correctmessage = (drink_alc_clicked, 500)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ errormessage = (drink_nonalc_clicked, 500)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ branch = [if (text.drink_nonalc.vposition == 35% &amp;amp;&amp;amp; trial.alcoholAL.response == 200) trial.alcoholAL.error == true]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ branch = [if (text.drink_nonalc.vposition == 65% &amp;amp;&amp;amp; trial.alcoholAL.response == 208) trial.alcoholAL.error == true]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ responsemessage = (0, blankscreen, 100)&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ timeout = 3700&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ ontrialbegin = [values.probe_alc_pos = "L"; values.probe_nonalc_pos = "R"; values.probe_arrow_pos = "L"; values.image_cat = "ALC"; values.image_name = picture.alcoholl_arrowl.&lt;/span&gt;&lt;wbr style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;currentitem]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;/ ontrialend = [if (trial.alcoholal.correct == true)&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp;{values.alc_probe_sum += 1; values.probe_alc_rt_sum += trial.alcoholal.latency;};]&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);"&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;trial alc&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = alc]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ trialduration = 3000&lt;br/&gt;/ ontrialbegin = [values.image_cat = "ALC"; values.image_name = picture.alc.currentitem]&lt;br/&gt;/ ontrialend = [values.image_cat = "ALC"; values.image_name = picture.alc.currentitem]&lt;br/&gt;/ responsetrial = (0, rating)&lt;br/&gt;/ correctresponse = (0)&lt;br/&gt;/ beginresponsetime = 3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;trial nonalc&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = nonalc]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ trialduration = 3000&lt;br/&gt;/ ontrialbegin = [values.image_cat = "NONALC"; values.image_name = picture.nonalc.currentitem]&lt;br/&gt;/ ontrialend = [values.image_cat = "NONALC"; values.image_name = picture.nonalc.currentitem]&lt;br/&gt;/ responsetrial = (0, rating)&lt;br/&gt;/ correctresponse = (0)&lt;br/&gt;/ beginresponsetime = 3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;surveypage rating&amp;gt;&lt;br/&gt;/ questions = [1 = stim_slider_want; 2 = stim_slider_enjoy]&lt;br/&gt;/ stimulusframes = [1 = slider_q1, slider_l1, slider_r1, slider_remind, slider_q2, slider_l2, slider_r2, slider_remind]&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ finishlabel = "Submit"&lt;br/&gt;/ timeout = 10000&lt;br/&gt;/ navigationbuttonfontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ nextbuttonposition = (46.75%, 85%)&lt;br/&gt;/ ontrialbegin = [if (values.image_cat == "ALC") {values.image_cat = "ALC"; values.image_name = picture.alc.currentitem}]&lt;br/&gt;/ ontrialbegin = [if (values.image_cat == "NONALC") {values.image_name = picture.nonalc.currentitem; values.image_cat = "NONALC"}]&lt;br/&gt;/ ontrialend = [if (slider.stim_slider_want.&lt;wbr&gt;response == 50 &amp;amp;&amp;amp; slider.stim_slider_enjoy.&lt;wbr&gt;response == 50 &amp;amp;&amp;amp; surveypage.rating.latency &amp;gt;= 10000)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.slider_correct = 0 else values.slider_correct = 1]&lt;br/&gt;/ ontrialend = [if (values.image_cat == "ALC" &amp;amp;&amp;amp; values.slider_correct != 0) {values.alc_num += 1;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;&amp;nbsp;values.alc_enjoy_sum += slider.stim_slider_enjoy.&lt;wbr&gt;response;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;&amp;nbsp;values.alc_want_sum += slider.stim_slider_want.&lt;wbr&gt;response;&lt;br/&gt;&amp;nbsp;values.alc_rt_sum += surveypage.rating.latency;};]&lt;br/&gt;/ ontrialend = [if (values.image_cat == "NONALC" &amp;amp;&amp;amp; values.slider_correct != 0) {values.nonalc_num += 1;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;&amp;nbsp;values.nonalc_enjoy_sum += slider.stim_slider_enjoy.&lt;wbr&gt;response;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;&amp;nbsp;values.nonalc_want_sum += slider.stim_slider_want.&lt;wbr&gt;response;&lt;br/&gt;&amp;nbsp;values.nonalc_rt_sum += surveypage.rating.latency;};]&lt;br/&gt;/ ontrialend = [if (values.image_cat == "ALC") values.image_name = picture.alc.currentitem]&lt;br/&gt;/ ontrialend = [if (values.image_cat == "NONALC") values.image_name = picture.nonalc.currentitem]&lt;br/&gt;/ response = timeout (10000)&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&lt;br/&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;------------------------------&lt;wbr&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;&amp;nbsp; CAPTURES&lt;br/&gt;------------------------------&lt;wbr&gt;-------------------&lt;br/&gt;&amp;lt;trial capture1&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = hotchoc_slide_pic]&lt;br/&gt;/ timeout = 3000&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ responsetrial = (0, cap1_surv)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;surveypage cap1_surv&amp;gt;&lt;br/&gt;/ questions = [1 = cap1_slider1; 2 = cap1_slider2]&lt;br/&gt;/ stimulusframes = [1 = cap1_q1, cap1_l1, cap1_r1, slidercap_remind; 2 = cap1_q2, cap1_l2, cap1_r2, slider_remind]&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ finishlabel = "Submit"&lt;br/&gt;/ navigationbuttonfontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ nextbuttonposition = (46.75%, 85%)&lt;br/&gt;/ timeout = 10000&lt;br/&gt;/ ontrialend = [if (slider.cap1_slider1.response &amp;gt;= 75 || slider.cap1_slider2.response &amp;lt;= 25)&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.slider_correct = 1 else values.slider_correct = 0]&lt;br/&gt;/ ontrialend = [if (slider.cap1_slider1.response &amp;gt;= 75 ) values.capture += 1]&lt;br/&gt;/ ontrialend = [if (slider.cap1_slider2.response &amp;lt;= 25 ) values.capture += 1]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;slider cap1_slider1&amp;gt;&lt;br/&gt;/ range = (0, 100)&lt;br/&gt;/ increment = 1&lt;br/&gt;/ slidersize = (80%, 50%)&lt;br/&gt;/ position= (10%, 35%)&lt;br/&gt;/ showtooltips = false&lt;br/&gt;&amp;lt;/slider&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;slider cap1_slider2&amp;gt;&lt;br/&gt;/ range = (0, 100)&lt;br/&gt;/ increment = 1&lt;br/&gt;/ slidersize = (80%, 50%)&lt;br/&gt;/ position = (10%, 65%)&lt;br/&gt;/ showtooltips = false&lt;br/&gt;&amp;lt;/slider&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;slider cap2_slider1&amp;gt;&lt;br/&gt;/ range = (0, 100)&lt;br/&gt;/ increment = 1&lt;br/&gt;/ slidersize = (80%, 50%)&lt;br/&gt;/ position= (10%, 35%)&lt;br/&gt;/ showtooltips = false&lt;br/&gt;&amp;lt;/slider&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;slider cap2_slider2&amp;gt;&lt;br/&gt;/ range = (0, 100)&lt;br/&gt;/ increment = 1&lt;br/&gt;/ slidersize = (80%, 50%)&lt;br/&gt;/ position = (10%, 65%)&lt;br/&gt;/ showtooltips = false&lt;br/&gt;&amp;lt;/slider&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text slidercap_remind&amp;gt;&lt;br/&gt;/ items = ("Drag both sliders COMPLETELY to the correct responses, then click SUBMIT.")&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 4%, true)&lt;br/&gt;/ position = (50%, 15%)&lt;br/&gt;/ txcolor = (0, 191, 255)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text cap1_q1&amp;gt;&lt;br/&gt;/ items = ("What was shown in the previous image?")&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3%, true)&lt;br/&gt;/ position = (50%, 30%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text cap1_l1&amp;gt;&lt;br/&gt;/ items = ("telephone")&lt;br/&gt;/ fontstyle = ("Arial", 2.25%, true)&lt;br/&gt;/ position = (10%, 42%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text cap1_r1&amp;gt;&lt;br/&gt;/ items = ("hot chocolate")&lt;br/&gt;/ fontstyle = ("Arial", 2.25%, true)&lt;br/&gt;/ position = (90%, 42%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text cap1_q2&amp;gt;&lt;br/&gt;/ items = ("Are you paying attention to these questions?")&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3%, true)&lt;br/&gt;/ position = (50%, 60%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text cap1_l2&amp;gt;&lt;br/&gt;/ items = ("Yes, I am.")&lt;br/&gt;/ fontstyle = ("Arial", 2.25%, true)&lt;br/&gt;/ position = (10%, 71%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text cap1_r2&amp;gt;&lt;br/&gt;/ items = ("No, I am not.")&lt;br/&gt;/ fontstyle = ("Arial", 2.25%, true)&lt;br/&gt;/ position = (90%, 71%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;trial capture2&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = milk_slide_pic]&lt;br/&gt;/ timeout = 3000&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ branch = [surveypage.cap2_surv]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;surveypage cap2_surv&amp;gt;&lt;br/&gt;/ questions = [1 = cap2_slider1; 2 = cap2_slider2]&lt;br/&gt;/ stimulusframes = [1 = cap1_q1, cap2_l1, cap2_r1, slidercap_remind; 2 = cap1_q2, cap1_l2, cap1_r2, slider_remind]&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ finishlabel = "Submit"&lt;br/&gt;/ navigationbuttonfontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ nextbuttonposition = (46.75%, 85%)&lt;br/&gt;/ timeout = 10000&lt;br/&gt;/ ontrialend = [if (slider.cap2_slider1.response &amp;lt;= 25 || slider.cap2_slider2.response &amp;lt;= 25)&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.slider_correct = 1 else values.slider_correct = 0]&lt;br/&gt;/ ontrialend = [if (slider.cap2_slider1.response &amp;lt;= 25 ) values.capture += 1]&lt;br/&gt;/ ontrialend = [if (slider.cap2_slider2.response &amp;lt;= 25 ) values.capture += 1]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text cap2_l1&amp;gt;&lt;br/&gt;/ items = ("milk")&lt;br/&gt;/ fontstyle = ("Arial", 2.25%, true)&lt;br/&gt;/ position = (10%, 42%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text cap2_r1&amp;gt;&lt;br/&gt;/ items = ("racecar")&lt;br/&gt;/ fontstyle = ("Arial", 2.25%, true)&lt;br/&gt;/ position = (90%, 42%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;------------------------------&lt;wbr&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;&amp;nbsp; ACCURACY CHECK&lt;br/&gt;------------------------------&lt;wbr&gt;-------------------&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;trial underaccuracy&amp;gt;&lt;br/&gt;/ stimulusframes = [1=scorereport; 2=recommend; 3 = under]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text scorereport&amp;gt;&lt;br/&gt;/ items = ("~tYour accuracy in identifying alcoholic beverages was &amp;lt;%expressions.alc_percent%&amp;gt;%. ~r~r&lt;br/&gt;&amp;nbsp;Your accuracy in identifying non-alcoholic beverages was &amp;lt;% expressions.nonalc_percent %&amp;gt;%.")&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.5%)&lt;br/&gt;/ position = (50%, 25%)&lt;br/&gt;/ size = (100%, 30%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text recommend&amp;gt;&lt;br/&gt;/ items = ("~tEither one or both of these accuracies is UNDER our 75% requirement, which was outlined in our consent form.~n&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;&amp;nbsp;If you submit this HIT, we will reject it. We recommend you return the hit so as not to impact your rating.~n&lt;br/&gt;&amp;nbsp;Please press Ctrl+Q to exit.~n~n&lt;br/&gt;&amp;nbsp;Thank you for participating, and best of luck.")&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ position = (50%, 55%)&lt;br/&gt;/ size = (100%, 30%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text under&amp;gt;&lt;br/&gt;/ items = ("UNDER our 75% requirement,")&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ position = (52.84%, 44.79%)&lt;br/&gt;/ txcolor = red&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&lt;br/&gt;------------------------------&lt;wbr&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;&amp;nbsp; CAPTURE CHECK&lt;br/&gt;------------------------------&lt;wbr&gt;-------------------&lt;br/&gt;&amp;lt;trial nocapture&amp;gt;&lt;br/&gt;/ stimulusframes = [1=accreport; 2=recommend2]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text accreport&amp;gt;&lt;br/&gt;/ items = ("~tOut of our 4 mandatory attention checks, you passed &amp;lt;% values.capture %&amp;gt;.~r~r&lt;br/&gt;This is under our attention check requirement, which was outlined in our consent form.")&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 3.5%)&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;/ size = (100%, 30%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text recommend2&amp;gt;&lt;br/&gt;/ items = ("~tIf you submit this HIT, we will reject it. We recommend you return the hit so as not to impact your rating.~n&lt;br/&gt;&amp;nbsp;Please press Ctrl+Q to exit.~n~n&lt;br/&gt;&amp;nbsp;Thank you for participating, and best of luck.")&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ position = (50%, 65%)&lt;br/&gt;/ size = (100%, 30%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;------------------------------&lt;wbr&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;&amp;nbsp; END&lt;br/&gt;------------------------------&lt;wbr&gt;-------------------&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;trial end&amp;gt;&lt;br/&gt;/ pretrialpause = 250&lt;br/&gt;/ posttrialpause = 250&lt;br/&gt;/ stimulustimes = [1=end]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;text end&amp;gt;&lt;br/&gt;/ items = end&lt;br/&gt;/ hjustify = center&lt;br/&gt;/ vjustify = center&lt;br/&gt;/ fontstyle = ("Arial", 2.5%, true)&lt;br/&gt;/ size = (90%, 80%)&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div class="gmail_default" style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, helvetica, sans-serif;"&gt;&amp;lt;item end&amp;gt;&lt;br/&gt;/1 ="The tasks are now complete. You scored above 75% in accuracy and passed all of our attention checks.~r~r&lt;br/&gt;Thank you for participating in this validation survey! We will be in touch for a follow-up with bonus payment in a few weeks.~r"&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;br/&gt;[/quote]&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;I'm sure it's a total mess. I also think I've yet to fully grasp values &amp;amp; expressions.&lt;br/&gt;&lt;br/&gt;Thanks, as ever, for the feedback.</description><pubDate>Wed, 04 May 2016 14:20:21 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19029.aspx</link><description>That was it! Dave, you're the best.</description><pubDate>Wed, 04 May 2016 14:20:21 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19018.aspx</link><description>&amp;gt;  forgo the&amp;nbsp;random counters altogether and just used4 separate picture "decks..."&lt;br/&gt;&lt;br/&gt;This is one workable approach.&lt;br/&gt;&lt;br/&gt;Problem:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial L_A1&amp;gt;&lt;br/&gt;/ &lt;strong&gt;ontrialbegin &lt;/strong&gt;= [values.probe_alc_pos = "L"; values.probe_nonalc_pos = "R"; values.probe_arrow_pos = "L"; &lt;strong&gt;values.image_name = picture.alc_picsL1.currentitem&lt;/strong&gt;; values.image_cat = "ALC"]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;As explained previously, currentitem will not reflect what you want when read /ontrial&lt;strong&gt;begin&lt;/strong&gt;. This belongs in /ontrial&lt;strong&gt;end&lt;/strong&gt; to have the expected result, i.e., reflect *what was displayed in that instance of the trial*.&lt;br/&gt;&lt;br/&gt;Once you fix that, everything should be fine.&lt;br/&gt;</description><pubDate>Tue, 03 May 2016 15:44:10 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19017.aspx</link><description>I even tried to forgo the&amp;nbsp;random counters altogether and just used4 separate picture "decks..." Again, I must be doing something wrong...&amp;nbsp;</description><pubDate>Tue, 03 May 2016 14:53:17 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19016.aspx</link><description>I see what you mean. Should I tie them to items? Get rid of the "noreplace"?&lt;br/&gt;Thank you for being patient with me, it's my first coding language ever.</description><pubDate>Tue, 03 May 2016 14:50:05 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19015.aspx</link><description>I see what you mean. Should I tie them to items? Get rid of the "noreplace"?&lt;br/&gt;Thank you for being patient with me, it's my first coding language ever.</description><pubDate>Tue, 03 May 2016 14:50:05 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19014.aspx</link><description>I've tried to explain this before in this thread. To quote the relevant portion:&lt;br/&gt;&lt;br/&gt;"Furthermore, for the random on-screen position, you make no adjustments at all. You simply draw from two x/y positions randomly *without* replacement. &lt;br/&gt;&lt;br/&gt;&amp;lt;counter type1pos&amp;gt;&lt;br/&gt;/ items = (20%,80%)&lt;br/&gt;/ select = noreplace&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;counter type2pos&amp;gt;&lt;br/&gt;/ items = (20%,80%)&lt;br/&gt;/ not = (type1pos)&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;Here, too, there is no reason that ALC should appear equally often on the LEFT in arrowL trials as it does in arrowR trials."&lt;br/&gt;&lt;br/&gt;You do *not* have any provisions at all as to where a specific image item should appear across X number of trials. You sample from *two* positions randomly *without* replacement. The positions are neither tied to any particular item nor a particular class of item (ALC or NONALC)&lt;br/&gt;&lt;br/&gt;Suppose in the first trial 80% is selected in type1pos (and conversely 20% in type2pos). Then in the *next* trial -- since you are sampling without replacement -- 20% will be selected in type1pos and 80% necessarily.&lt;br/&gt;&lt;br/&gt;The deck of cards analogy applies here as well, and it also applies to other selection modes (with replacement, etc.).&lt;br/&gt;&lt;br/&gt;Hope this clarifies.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 03 May 2016 14:40:57 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19012.aspx</link><description>That's super helpful, thanks so much for that. I'm now thinking the error must be somewhere in the selection or counter or my understanding thereof. I set the block to this:&lt;br/&gt;&amp;lt;block stimuli&amp;gt;&lt;br/&gt;/ trials = [1-36 = noreplace(arrowL)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Then I ran the monkey through it, then looked at the data, expecting that each of the 36 images should appear once. This wasn't the case, as soon pictures appeared 2-3x and some not at all. &lt;br/&gt;To be clear, I have 18 image pairs. I want each image to appear twice on the left, and twice on the right, with the arrow probe point L&amp;amp;R for each orientation. So ideally something like:&lt;br/&gt;ALC &amp;lt; NONALC&lt;br/&gt;ALC &amp;gt; NONALC&lt;br/&gt;NONALC &amp;lt; ALC&lt;br/&gt;NONALC &amp;gt; ALC&lt;br/&gt;For every single pair. It should be 72 trials, then. But I'm doing something totally wrong. When you look at the script, is it coded with that arrangement in mind? Or have I not set it up properly?&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 03 May 2016 14:24:40 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19010.aspx</link><description>P.S.: For a simple illustration that may clarify the above, see the example at &lt;a href="https://www.millisecond.com/forums/FindPost16492.aspx"&gt;https://www.millisecond.com/forums/FindPost16492.aspx&lt;/a&gt; .&lt;br/&gt;</description><pubDate>Tue, 03 May 2016 13:56:26 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19009.aspx</link><description>&amp;lt;trial arrowL&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.probe_alc_pos = picture.alc_picsL.hposition; values.probe_nonalc_pos = picture.nonalc_picsL.hposition; values.probe_arrow_pos = "L"]&lt;br/&gt;/ ontrialbegin = [if (picture.alc_picsL.hposition == 20%) values.image_name = picture.alc_picsL.currentitem]&lt;br/&gt;/ ontrialbegin = [if (picture.alc_picsL.hposition == 20%) values.image_cat = "ALC"]&lt;br/&gt;/ ontrialbegin = [if (picture.nonalc_picsL.hposition == 20%) values.image_name = picture.nonalc_picsL.currentitem]&lt;br/&gt;/ ontrialbegin = [if (picture.nonalc_picsL.hposition == 20%) values.image_cat = "NONALC"]&lt;br/&gt;/ stimulustimes = [0 = fixation; 500 = erasefixation, alc_picsL, nonalc_picsL, arrowL; 700 = blankscreen, drink_nonalc, drink_alc]&lt;br/&gt;/ validresponse = (200, 208)&lt;br/&gt;/ iscorrectresponse = [(picture.alc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_alc.vposition == 35% &amp;amp;&amp;amp; trial.arrowL.response == 200) || (picture.alc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_alc.vposition == 65% &amp;amp;&amp;amp; trial.arrowL.response == 208)]&lt;br/&gt;/ iscorrectresponse = [(picture.nonalc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_alc.vposition == 35% &amp;amp;&amp;amp; trial.arrowL.response == 200) || (picture.nonalc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_alc.vposition == 65% &amp;amp;&amp;amp; trial.arrowL.response == 208)]&lt;br/&gt;/ correctmessage = (drink_alc_clicked, 500)&lt;br/&gt;/ errormessage = (drink_nonalc_clicked, 500)&lt;br/&gt;/ branch = [if (picture.alc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_nonalc.vposition == 35% &amp;amp;&amp;amp; trial.arrowL.response == 200) trial.arrowL.error == true]&lt;br/&gt;/ branch = [if (picture.nonalc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_nonalc.vposition == 65% &amp;amp;&amp;amp; trial.arrowL.response == 208) trial.arrowL.error == true]&lt;br/&gt;/ responsemessage = (0, blankscreen, 100)&lt;br/&gt;/ timeout = 3700&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;No. One of the problems (I'm not sure how many there are, because I'm not 100% clear on what "spread" exactly you expect or intend to achieve), is that the values where you record image name, etc., and which -- I think -- you rely on when "checking" the "spread", do *not* reflect what you think they reflect.&lt;br/&gt;&lt;br/&gt;/ontrialbegin attributes are executed *before* any stimuli are selected, which only happens when /stimulustimes is prepared and executed. I.e.&lt;br/&gt;&lt;br/&gt;/ &lt;strong&gt;ontrialbegin &lt;/strong&gt;= [if (picture.alc_picsL.hposition == 20%) values.image_name =&lt;strong&gt; picture.alc_picsL.currentitem]&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;will *not* reflect the item that *will eventually be* selected in that &amp;lt;trial&amp;gt;'s given instance. It reflects the item *currently* selected for that &amp;lt;picture&amp;gt; element, which -- since selection in the current trial's instance hasn't happened yet -- reflects what *was* selected in the *previous* instance of the trial.&lt;br/&gt;&lt;br/&gt;The same goes for the position stuff and the logic you base on that. &lt;br/&gt;&lt;br/&gt;What you'll want to do to fix that is something along the lines of&lt;br/&gt;&lt;br/&gt;&amp;lt;trial arrowL&amp;gt;&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [picture.alc_picsL.hposition = counter.type1pos.selectedvalue; picture.nonalc_picsL.hposition = counter.type2pos.selectedvalue; ]&lt;/strong&gt;&lt;br/&gt;/ ontrialbegin = [values.probe_alc_pos = picture.alc_picsL.hposition; values.probe_nonalc_pos = picture.nonalc_picsL.hposition; values.probe_arrow_pos = "L"]&lt;br/&gt;/ &lt;strong&gt;ontrialend &lt;/strong&gt;= [if (picture.alc_picsL.hposition == 20%) values.image_name = picture.alc_picsL.currentitem]&lt;br/&gt;/ &lt;strong&gt;ontrialend &lt;/strong&gt;= [if (picture.alc_picsL.hposition == 20%) values.image_cat = "ALC"]&lt;br/&gt;/ &lt;strong&gt;ontrialend &lt;/strong&gt;= [if (picture.nonalc_picsL.hposition == 20%) values.image_name = picture.nonalc_picsL.currentitem]&lt;br/&gt;/ &lt;strong&gt;ontrialend &lt;/strong&gt;= [if (picture.nonalc_picsL.hposition == 20%) values.image_cat = "NONALC"]&lt;br/&gt;/ stimulustimes = [0 = fixation; 500 = erasefixation, alc_picsL, nonalc_picsL, arrowL; 700 = blankscreen, drink_nonalc, drink_alc]&lt;br/&gt;/ validresponse = (200, 208)&lt;br/&gt;/ iscorrectresponse = [(picture.alc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_alc.vposition == 35% &amp;amp;&amp;amp; trial.arrowL.response == 200) || (picture.alc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_alc.vposition == 65% &amp;amp;&amp;amp; trial.arrowL.response == 208)]&lt;br/&gt;/ iscorrectresponse = [(picture.nonalc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_alc.vposition == 35% &amp;amp;&amp;amp; trial.arrowL.response == 200) || (picture.nonalc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_alc.vposition == 65% &amp;amp;&amp;amp; trial.arrowL.response == 208)]&lt;br/&gt;/ correctmessage = (drink_alc_clicked, 500)&lt;br/&gt;/ errormessage = (drink_nonalc_clicked, 500)&lt;br/&gt;/ branch = [if (picture.alc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_nonalc.vposition == 35% &amp;amp;&amp;amp; trial.arrowL.response == 200) trial.arrowL.error == true]&lt;br/&gt;/ branch = [if (picture.nonalc_picsL.hposition == 20% &amp;amp;&amp;amp; text.drink_nonalc.vposition == 65% &amp;amp;&amp;amp; trial.arrowL.response == 208) trial.arrowL.error == true]&lt;br/&gt;/ responsemessage = (0, blankscreen, 100)&lt;br/&gt;/ timeout = 3700&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Tue, 03 May 2016 13:46:41 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19006.aspx</link><description>Are all of my selectionmodes correct? I probably have them wrong. Argh.</description><pubDate>Tue, 03 May 2016 12:33:00 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19005.aspx</link><description>Nice catch, whoops. Still, when I run a tes.t, it doesn't show everything evenly. Attached is the raw data</description><pubDate>Tue, 03 May 2016 12:32:29 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19003.aspx</link><description>&amp;lt;block stimuli&amp;gt;&lt;br/&gt;/ trials = [1-72 = noreplace(&lt;br/&gt;arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, &lt;br/&gt;arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL,&lt;br/&gt;arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, &lt;br/&gt;arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, &lt;br/&gt;&lt;br/&gt;arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, &lt;br/&gt;arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR,&lt;br/&gt;arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR,&lt;br/&gt;arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR&lt;br/&gt;&lt;br/&gt;)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Only glancing over the script, the above seems misspecified. There are *32* arrowL trials and *32* arrowR trials listed (64 total). You want to run 72 trials total, with -- as far as I understand -- 36 arrowL and 36 arrowR.&lt;br/&gt;</description><pubDate>Tue, 03 May 2016 11:15:03 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic19002.aspx</link><description>So, I did this again with two sets of pictures (alc_picsL) and (alc_picsR) plus their nonalc counterparts. Still, when I look at the raw data, I'm not getting the equal spread that I want. I definitely understand your analogy with the hands of cards/decks, I just think I'm not understanding the full implementation. I uploaded the script again for reference.</description><pubDate>Tue, 03 May 2016 10:27:15 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic18995.aspx</link><description>You have &lt;br/&gt;&lt;br/&gt;&amp;lt;picture alc_pics&amp;gt;&lt;br/&gt;/ items = ("1P_1.jpg","1P_2.jpg","1P_3.jpg","1P_4.jpg","1P_5.jpg", "1P_6.jpg","1P_7.jpg","1P_8.jpg","1P_9.jpg","1P_10.jpg", "1P_11.jpg", "1P_12.jpg", "1P_13.jpg", "1P_14.jpg", "1P_15.jpg", "1P_16.jpg", "1P_17.jpg", "1P_18.jpg")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ size = (85%, 85%)&lt;br/&gt;/ vposition = 50%&lt;br/&gt;/ hposition = counter.type1pos.selectedvalue&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nonalc_pics&amp;gt;&lt;br/&gt;/ items = ("2P_1.jpg","2P_2.jpg","2P_3.jpg","2P_4.jpg","2P_5.jpg", "2P_6.jpg","2P_7.jpg","2P_8.jpg","2P_9.jpg","2P_10.jpg", "2P_11.jpg", "2P_12.jpg", "2P_13.jpg", "2P_14.jpg", "2P_15.jpg", "2P_16.jpg", "2P_17.jpg", "2P_18.jpg")&lt;br/&gt;/ select = picture.alc_pics.currentindex&lt;br/&gt;/ size = (85%, 85%)&lt;br/&gt;/ vposition = 50%&lt;br/&gt;/ hposition = counter.type2pos.selectedvalue&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;which defines the 18 pairs. 1P_1 &amp;amp; 2P_1 form the 1st pair, 1P_2 &amp;amp; 2P_2 form the 2nd pair, and so forth.&lt;br/&gt;&lt;br/&gt;Think of the above as a deck of 18 cards, with the different pairs written on the cards. You draw from that deck of cards *without replacement* (noreplace).&lt;br/&gt;&lt;br/&gt;You have two &amp;lt;trial&amp;gt; elements -- &amp;lt;trial arrowL&amp;gt; and &amp;lt;trial arrowR&amp;gt; -- that draw from that deck of 18 cards:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial arrowL&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ stimulustimes = [0 = fixation; 500 = erasefixation,&lt;strong&gt; alc_pics, nonalc_pics&lt;/strong&gt;, arrowL; 700 = blankscreen, drink_nonalc, drink_alc]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial arrowR&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ stimulustimes = [0 = fixation; 500 = erasefixation, &lt;strong&gt;alc_pics, nonalc_pics&lt;/strong&gt;, arrowR; 700 = blankscreen, drink_nonalc, drink_alc]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Think about arrowL as your left hand and arrowR as your right hand.&lt;br/&gt;&lt;br/&gt;You then proceed to draw 36 times with your LEFT hand and 36 times with your RIGHT hand from the deck:&lt;br/&gt;&lt;br/&gt;&amp;lt;block stimuli&amp;gt; &lt;br/&gt;/ trials = [1-72 = noreplace(&lt;br/&gt;arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, &lt;br/&gt;arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL,&lt;br/&gt;arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, &lt;br/&gt;arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, arrowL, &lt;br/&gt;arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, &lt;br/&gt;arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR,&lt;br/&gt;arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR,&lt;br/&gt;arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR, arrowR)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;There is no reason why across all those draws you should end up with having drawn the SAME set of cards with both your left and right hand.&lt;br/&gt;&lt;br/&gt;Furthermore, for the random on-screen position, you make no adjustments at all. You simply draw from two x/y positions randomly *without* replacement. &lt;br/&gt;&lt;br/&gt;&amp;lt;counter type1pos&amp;gt;&lt;br/&gt;/ items = (20%,80%)&lt;br/&gt;/ select = noreplace&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;counter type2pos&amp;gt;&lt;br/&gt;/ items = (20%,80%)&lt;br/&gt;/ not = (type1pos)&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;Here, too, there is no reason that ALC should appear equally often on the LEFT in arrowL trials as it does in arrowR trials.&lt;br/&gt;&lt;br/&gt;I've explained the same thing previously in some more detail here: &lt;a href="https://www.millisecond.com/forums/Topic14239.aspx"&gt;https://www.millisecond.com/forums/Topic14239.aspx&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;In short: You need to set up *separate* &amp;lt;picture&amp;gt; etc. elements for &amp;lt;trial arrowL&amp;gt; and &amp;lt;trial arrowR&amp;gt;, i.e., have (at least) *two* separate decks of 18 cards to draw from: One you draw from with your LEFT hand, another one you draw from with your RIGHT hand.&lt;br/&gt;&lt;br/&gt;I hope the deck of cards analogy makes things a little clearer / more tangible as opposed to talking about selection in the abstract. (I often think about sampling problems in those terms and have found it useful to do so.)&lt;br/&gt;</description><pubDate>Mon, 02 May 2016 17:00:06 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic18994.aspx</link><description>Hi again Dave,&lt;br/&gt;&lt;br/&gt;So, all is well with that part of the script. However, I'm now facing another problem. See the attached script (I simplified it from the previous one).&lt;br/&gt;The idea is that there are 18 matched pairs of pictures with an arrow probe&lt;br/&gt;I have tried to have it randomized such that&amp;nbsp; be each image gets a chance to be on the left and on the right, and then also with the &amp;lt; or &amp;gt;, for a total of 4 trials each. So, 72 total.&lt;br/&gt;The problem is my randomization and repetition is clearly all wrong. When I look at the raw data, sometimes images are appearing more than 4 times, sometimes not at all...what am I doing wrong?&lt;br/&gt;&lt;br/&gt;At my lab we've been joking that we should give you a shoutout in the paper :)&lt;br/&gt;</description><pubDate>Mon, 02 May 2016 15:16:31 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic18991.aspx</link><description>Dave, I think I figured it out! I split the /ontrialend into two conditions rather than one with ||&lt;br/&gt;Hopefully that'll do the trick.</description><pubDate>Mon, 02 May 2016 11:15:09 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic18990.aspx</link><description>Dave,&lt;br/&gt;&lt;br/&gt;Looks fantastic! I piloted it and intentionally failed all captures and it rerouted to the "nocapture" page perfectly. However, the second portion with the accuracy check...I did it and intentionally got everything wrong, and the paradigm ended then loops back to "slider." Then, when I made &amp;lt;expt&amp;gt; only to be stimintro, and tried to go through it that way, I finished the paradigm and the task ended completely. Any thoughts as to what's going on? I'm sure it has to do with my values &amp;amp; expressions...&lt;br/&gt;&lt;br/&gt;Your help is ever appreciated!&lt;br/&gt;Lily</description><pubDate>Mon, 02 May 2016 10:48:08 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic18973.aspx</link><description>The attached revision (only minor changes; as detailed in the previous response) should work just fine.&lt;br/&gt;</description><pubDate>Wed, 27 Apr 2016 17:16:15 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic18972.aspx</link><description>Totally fair, I have attached the script to this post. I just realized that I branched to "stimuli" instead of "block.stimuli" and that sort of thing, so apologies in advance.&lt;br/&gt;&lt;br/&gt;Also, I should give you credit for tons of stuff in this script since you've been so integral in its creation :)&lt;img src="http://www.millisecond.com/forums/Skins/Classic/Images/richtextbox/icons/mnu_resize.gif" alt="Resize Editor" unselectable="on"&gt;</description><pubDate>Wed, 27 Apr 2016 15:53:12 GMT</pubDate><dc:creator>ldobb</dc:creator></item><item><title>RE: Branching out if subject underperforms</title><link>https://forums.millisecond.com/Topic18971.aspx</link><description>Since you want to invoke another &amp;lt;block&amp;gt; based on performance, you need to use /branch. You cannot use /onblockend for that. I.e., it needs to read&lt;br/&gt;&lt;br/&gt;&amp;lt;block slider&amp;gt;&lt;br/&gt;/ trials = [ 1-38 = noreplace(capture1, capture2, &lt;br/&gt;alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc, alc,&lt;br/&gt;nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc, nonalc)]&lt;br/&gt;&lt;strong&gt;/ branch = [if (values.capture &amp;lt; 4) block.nocapture else block.stimintro]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;and from &amp;lt;block stimintro&amp;gt; you'll then of course want to branch to &amp;lt;block stimuli&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block stimintro&amp;gt;&lt;br/&gt;/ trials = [1 = preinstructions_3; 2 = instructions_3; 3-4 = instructions_3a; 5-6 = instructions_3b; 7-10 = instructions_3c; 11 = probe_practice1; 12 = probe_practice2; 13 = instructions_4]&lt;br/&gt;/ bgstim = (spacebar)&lt;br/&gt;&lt;strong&gt;/ branch = [block.stimuli]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;and so forth.&lt;br/&gt;&lt;br/&gt;Beyond that the script excerpts are far too incomplete for me to say much. Since I cannot run this thing to all the missing bits and pieces, I cannot actually test it. None of the logic that updates the values you ultimately want to base your /branches on is included, i.e., I have no way of ascertaining whether &lt;br/&gt;&lt;br/&gt;&amp;lt;block stimuli&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [if (expressions.alc_percent &amp;lt; 75 || expressions.nonalc_percent &amp;lt; 75) block.underaccuracy else block.mturk]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;expressions.alc_percent and expressions.nonalc_percent actually *could* reach values greater or smaller than 75.&lt;br/&gt;&lt;br/&gt;Useful tip: During script execution, pressing CTRL+D allows you inspect the current state of any value or expression at that given moment.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 27 Apr 2016 14:40:29 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>