﻿<?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  » How to link video’s between trials depending on choices?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 24 Sep 2026 00:09:11 GMT</lastBuildDate><ttl>20</ttl><item><title>How to link video’s between trials depending on choices?</title><link>https://forums.millisecond.com/Topic28468.aspx</link><description>Hi all,&lt;br/&gt;&lt;br/&gt;For a simple two-options choice task (two types of products are presented left and right on the screen), I have feedback pictures/animations (earth_ani_mov) that change depending on the choices of participants. There are 5 choice-trials in a block, and the feedback can be positive or negative. I have 19 animations (called ‘etmov’), and start with the middle/baseline animation (etmov10) at trial 1. If participants choose the ‘sustainable option’, I want that etmov10 changes to etmov11 at the outcome at the first trial, and then I want trial 2 to start with etmov12. If the participant&amp;nbsp;chooses the ‘sustainable option’ at trial 2 again, I want that etmov12 changes to etmov13 at the end of the block, and that trial 3 starts with etmov14. And so on. (where the feedback becomes negative when participants choose the 'unsustainable option', then, at trial 3, etmov14 would via etmov13 back to etmov12). So, for example, when participants choose ‘unsustainable’ at trial 1, the animations decrease from etmov10 at trial1, to etmov1&amp;nbsp;ultimately at the end of trial 5.&lt;br/&gt;&lt;br/&gt;How can I make sure, that after each trial, the next animation in line is presented? &lt;br/&gt;When I run my script now, sometimes one animation is skipped in line and I cannot figure out why. &lt;br/&gt;Can anyone help me?&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;Below you find my script:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt T1_feedback&amp;gt;&lt;br/&gt;/ blocks = [1-8 = noreplace(block_fb_1s10, block_fb_2s10)] &lt;br/&gt;/ subjects = (2 of 2)&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block_fb_1s10&amp;gt;&lt;br/&gt;/ trials = [1 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 2 = fb_1s10_outcome; &lt;br/&gt;3 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 4 = fb_1s10_outcome;&lt;br/&gt;5 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 6 = fb_1s10_outcome;&lt;br/&gt;7 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 8 = fb_1s10_outcome;&lt;br/&gt;9 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 10 = fb_1s10_outcome] &lt;br/&gt;/ onblockend = [values.earth = 10]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block_fb_2s10&amp;gt;&lt;br/&gt;/ trials = [1 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 2 = fb_2s10_outcome; &lt;br/&gt;3 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 4 = fb_2s10_outcome;&lt;br/&gt;5 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 6 = fb_2s10_outcome;&lt;br/&gt;7 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 8 = fb_2s10_outcome;&lt;br/&gt;9 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 10 = fb_2s10_outcome] &lt;br/&gt;/ onblockend = [values.earth = 10]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_left_fb_1s10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_left_fb_1s10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susleft_10, product_unsright_10, earth_ani_mov; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_1s10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_1s10_choice.response == 38) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ responsetrial = (noresponse, sus_left_fb_1s10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_right_fb_1s10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_right_fb_1s10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susright_10, product_unsleft_10, earth_ani_mov; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("l")&lt;br/&gt;/ validresponse = ("l", "a")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_right_fb_1s10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_1s10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ responsetrial = (noresponse, sus_right_fb_1s10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fb_1s10_outcome&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = earth_ani_mov, Mask, Mask1, Mask2]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_1s10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_1s10_choice.response == 38) values.earth -= 1;&lt;br/&gt;If (trial.sus_right_fb_1s10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_1s10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_left_fb_2s10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_left_fb_2s10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susleft_10, product_unsright_10, earth_ani_mov; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_2s10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_2s10_choice.response == 38) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ responsetrial = (noresponse, sus_left_fb_2s10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_right_fb_2s10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_right_fb_2s10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susright_10, product_unsleft_10, earth_ani_mov; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("l")&lt;br/&gt;/ validresponse = ("l", "a")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_right_fb_2s10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_2s10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ responsetrial = (noresponse, sus_right_fb_2s10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fb_2s10_outcome&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = earth_ani_mov]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_2s10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_2s10_choice.response == 38) values.earth -= 1;&lt;br/&gt;If (trial.sus_right_fb_2s10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_2s10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture product_susleft_10&amp;gt;&lt;br/&gt;/ items = sustainable_10&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture product_unsright_10&amp;gt;&lt;br/&gt;/ items = unsustainable_10&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;/ select = current(product_susleft_10)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture product_susright_10&amp;gt;&lt;br/&gt;/ items = sustainable_10&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture product_unsleft_10&amp;gt;&lt;br/&gt;/ items = unsustainable_10&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;/ select = current(product_susright_10)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list allitems10&amp;gt;&lt;br/&gt;/ poolsize = 25&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item sustainable_10&amp;gt;&lt;br/&gt;/1 = "1s2.jpg"&lt;br/&gt;/2 = "2s2.jpg"&lt;br/&gt;/3 = "7s2.jpg"&lt;br/&gt;t/m 25&lt;br/&gt;&lt;br/&gt;&amp;lt;item unsustainable_10&amp;gt;&lt;br/&gt;/1 = "1u2.jpg"&lt;br/&gt;/2 = "2u2.jpg"&lt;br/&gt;/3 = "7u2.jpg"&lt;br/&gt;t/m 25&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ earth = 10&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;video earth_ani_mov&amp;gt;&lt;br/&gt;/ items = earth_video&lt;br/&gt;/ loop = true&lt;br/&gt;/ select = values.earth&lt;br/&gt;&amp;lt;/video&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list earth&amp;gt;&lt;br/&gt;/ items = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)&lt;br/&gt;/ replace = true&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item earth_video&amp;gt;&lt;br/&gt;/1 = "etmov1.mp4"&lt;br/&gt;/2 = "etmov2.mp4"&lt;br/&gt;/3 = "etmov3.mp4"&lt;br/&gt;/4 = "etmov4.mp4"&lt;br/&gt;/5 = "etmov5.mp4"&lt;br/&gt;/6 = "etmov6.mp4"&lt;br/&gt;/7 = "etmov7.mp4"&lt;br/&gt;/8 = "etmov8.mp4"&lt;br/&gt;/9 = "etmov9.mp4"&lt;br/&gt;/10 = "etmov10.mp4"&lt;br/&gt;/11 = "etmov11.mp4"&lt;br/&gt;/12 = "etmov12.mp4"&lt;br/&gt;/13 = "etmov13.mp4"&lt;br/&gt;/14 = "etmov14.mp4"&lt;br/&gt;/15 = "etmov15.mp4"&lt;br/&gt;/16 = "etmov16.mp4"&lt;br/&gt;/17 = "etmov17.mp4"&lt;br/&gt;/18 = "etmov18.mp4"&lt;br/&gt;/19 = "etmov19.mp4"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 10 Mar 2020 21:41:18 GMT</pubDate><dc:creator>Amarins</dc:creator></item><item><title>RE: How to link video’s between trials depending on choices?</title><link>https://forums.millisecond.com/Topic28496.aspx</link><description>Oops, stupid mistake... It has been a long day. Thank you for being so sharp Dave!&amp;nbsp;</description><pubDate>Tue, 10 Mar 2020 21:41:18 GMT</pubDate><dc:creator>Amarins</dc:creator></item><item><title>RE: How to link video’s between trials depending on choices?</title><link>https://forums.millisecond.com/Topic28486.aspx</link><description>&lt;blockquote data-id="28485" class="if-quote-wrapper" unselectable="on" data-guid="1583858345961" id="if_insertedNode_1583858344238" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28485" 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="28485" 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="28485" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Amarins - 3/10/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28485"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Dave, thank you so much for your help!&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Not sure why I thought adding the same /ontrialend logic in the outcome trial was a good idea. Your suggestion makes much more sense indeed!&lt;br/&gt;&lt;br/&gt;Unfortunately, I still encounter a problem when running your suggestions in my script. I hope you can help me with this as well.&amp;nbsp;&lt;br/&gt;The first block seems to be okay, but in the next blocks something goes wrong.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;The problem is the following: &lt;br/&gt;When you switch from choosing sustainable options (the "correct" choice that leads to an increase in the values for earth) to unsustainable option (the "incorrect" choice that leads to an decrease in values of earth), &lt;br/&gt;then the sequence of values.earth seems not to be disrupted. It doesn't  become negative. It seems that the next earth values only continue in positive direction. How can I make sure that the next value option also goes to the other direction?&amp;nbsp;Does it have something to do with resetting the next.earth values on block level maybe?&lt;br/&gt;&lt;br/&gt;Hopefully I was able to explain what I mean...&lt;br/&gt;(I also added my new Inquisit-file)&lt;a class="if-quote-goto quote-link" href="#" data-id="28485"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;lt;trial sus_left_fb_&lt;strong&gt;20&lt;/strong&gt;_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_left_fb_20_choice.response != 0) {values.itemnumber = list.allitems20.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susleft_20, product_unsright_20, earth_ani_mov; &lt;br/&gt;1000 = co2_susleft_low, co2_unsright_high; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_&lt;strong&gt;10&lt;/strong&gt;_choice.response == 30) {values.earth += 1; values.nextearth = values.earth + 1;};&lt;br/&gt;If (trial.sus_left_fb_&lt;strong&gt;10&lt;/strong&gt;_choice.response == 38) {values.earth -= 1; values.nextearth = values.earth - 1;};&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_left_fb_20_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_right_fb_&lt;strong&gt;20&lt;/strong&gt;_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_right_fb_20_choice.response != 0) {values.itemnumber = list.allitems20.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susright_20, product_unsleft_20, earth_ani_mov; &lt;br/&gt;1000 = co2_susright_low, co2_unsleft_high; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("l")&lt;br/&gt;/ validresponse = ("l", "a")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_right_fb_&lt;strong&gt;10&lt;/strong&gt;_choice.response == 38) {values.earth += 1; values.nextearth = values.earth + 1;};&lt;br/&gt;If (trial.sus_right_fb_&lt;strong&gt;10&lt;/strong&gt;_choice.response == 30) {values.earth -= 1; values.nextearth = values.earth - 1;};&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_right_fb_20_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;You are referencing the wrong trials in your /ontrialend logic. The above needs to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_left_fb_&lt;strong&gt;20&lt;/strong&gt;_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_left_fb_20_choice.response != 0) {values.itemnumber = list.allitems20.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susleft_20, product_unsright_20, earth_ani_mov;&lt;br/&gt;1000 = co2_susleft_low, co2_unsright_high;&lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_&lt;strong&gt;20&lt;/strong&gt;_choice.response == 30) {values.earth += 1; values.nextearth = values.earth + 1;};&lt;br/&gt;If (trial.sus_left_fb_&lt;strong&gt;20&lt;/strong&gt;_choice.response == 38) {values.earth -= 1; values.nextearth = values.earth - 1;};&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_left_fb_20_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_right_fb_&lt;strong&gt;20&lt;/strong&gt;_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_right_fb_20_choice.response != 0) {values.itemnumber = list.allitems20.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susright_20, product_unsleft_20, earth_ani_mov;&lt;br/&gt;1000 = co2_susright_low, co2_unsleft_high;&lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("l")&lt;br/&gt;/ validresponse = ("l", "a")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_right_fb_&lt;strong&gt;20&lt;/strong&gt;_choice.response == 38) {values.earth += 1; values.nextearth = values.earth + 1;};&lt;br/&gt;If (trial.sus_right_fb_&lt;strong&gt;20&lt;/strong&gt;_choice.response == 30) {values.earth -= 1; values.nextearth = values.earth - 1;};&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_right_fb_20_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Tue, 10 Mar 2020 16:41:24 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How to link video’s between trials depending on choices?</title><link>https://forums.millisecond.com/Topic28485.aspx</link><description>Hi Dave, thank you so much for your help!&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Not sure why I thought adding the same /ontrialend logic in the outcome trial was a good idea. Your suggestion makes much more sense indeed!&lt;br/&gt;&lt;br/&gt;Unfortunately, I still encounter a problem when running your suggestions in my script. I hope you can help me with this as well.&amp;nbsp;&lt;br/&gt;The first block seems to be okay, but in the next blocks something goes wrong.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;The problem is the following: &lt;br/&gt;When you switch from choosing sustainable options (the "correct" choice that leads to an increase in the values for earth) to unsustainable option (the "incorrect" choice that leads to an decrease in values of earth), &lt;br/&gt;then the sequence of values.earth seems not to be disrupted. It doesn't  become negative. It seems that the next earth values only continue in positive direction. How can I make sure that the next value option also goes to the other direction?&amp;nbsp;Does it have something to do with resetting the next.earth values on block level maybe?&lt;br/&gt;&lt;br/&gt;Hopefully I was able to explain what I mean...&lt;br/&gt;(I also added my new Inquisit-file)</description><pubDate>Tue, 10 Mar 2020 16:23:06 GMT</pubDate><dc:creator>Amarins</dc:creator></item><item><title>RE: How to link video’s between trials depending on choices?</title><link>https://forums.millisecond.com/Topic28484.aspx</link><description>&lt;blockquote data-id="28483" class="if-quote-wrapper" unselectable="on" data-guid="1583851845970" id="if_insertedNode_1583851845238" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28483" 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="28483" 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="28483" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 3/10/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28483"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="28482" class="if-quote-wrapper" unselectable="on" data-guid="1583851845970" id="if_insertedNode_1583849613386" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28482" 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="28482" 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="28482" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Amarins - 3/10/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28482"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;I am so sorry, of course! In the attachment you can find my Inquisit-file and all stimuli. Thanks in advance!&lt;a class="if-quote-goto quote-link" href="#" data-id="28482"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thank you. Here's what I don't understand. You increase or decrease values.earth (which is responsible for selecting the animation item number) depending on response in your choice trials:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_left_fb_10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_left_fb_10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susleft_10, product_unsright_10, earth_ani_mov; &lt;br/&gt;1000 = co2_susleft_low, co2_unsright_high; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_left_fb_10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_10_choice.response == 38) values.earth -= 1;&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_left_fb_10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_right_fb_10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_right_fb_10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susright_10, product_unsleft_10, earth_ani_mov; &lt;br/&gt;1000 = co2_susright_low, co2_unsleft_high; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("l")&lt;br/&gt;/ validresponse = ("l", "a")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_right_fb_10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_10_choice.response == 30) values.earth -= 1;&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_right_fb_10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;So far, so good. But then, in the outcome trial that follows every choice trial, you do so again:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fb_10_outcome&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = earth_ani_mov, Mask, Mask1, Mask2]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_left_fb_10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_10_choice.response == 38) values.earth -= 1;&lt;br/&gt;If (trial.sus_right_fb_10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_10_choice.response == 30) values.earth -= 1;&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ timeout = 2000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Why?&lt;br/&gt;&lt;br/&gt;In addition, the /ontrialend logic in the outcome trial is problematic, because depending on what exactly happened before, you'll in- or decrease values.earth by 2 (or not at all). Here's why:&lt;br/&gt;&lt;br/&gt;- Suppose the 1st choice trial in the block is sus_&lt;strong&gt;left&lt;/strong&gt;_fb_10_choice, and the response is 30. Then there's a 1st instance of the outcome trial.&lt;br/&gt;- Suppose the 2nd choice trial in the block is sus_&lt;strong&gt;right&lt;/strong&gt;_fb_10_choice, and the response is 38. Now things get problematic in the outcome trial:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fb_10_outcome&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = earth_ani_mov, Mask, Mask1, Mask2]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_left_fb_10_choice.response == 30) values.earth += 1;&lt;/strong&gt;&lt;br/&gt;If (trial.sus_left_fb_10_choice.response == 38) values.earth -= 1;&lt;br/&gt;&lt;strong&gt;If (trial.sus_right_fb_10_choice.response == 38) values.earth += 1;&lt;/strong&gt;&lt;br/&gt;If (trial.sus_right_fb_10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ timeout = 2000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Both bolded conditions are true now: trial.sus_left_fb_10_choice's response is still 30 -- that was the 1st choice trial in the block. AND trial.sus_right_fb_10_choice's response is 38, that was the 2nd choice trial in the block. The consequence is that values.earth will be increased by 2.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="28483"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;To avoid the double-counting detailed above, I'd recommed simply handling everything related to increment or decrementing values.earth in the choice trials. I.e. define an additional value&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ earth = 10&lt;br/&gt;&lt;strong&gt;/ nextearth = 0&lt;/strong&gt;&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;Keep updating values.earth as usual, but in parallel set values.nextearth to the next value you need, i.e. one higher or lower than the current values.earth:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_left_fb_10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_left_fb_10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susleft_10, product_unsright_10, earth_ani_mov; &lt;br/&gt;1000 = co2_susleft_low, co2_unsright_high; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_left_fb_10_choice.response == 30) {values.earth += 1; values.nextearth = values.earth + 1;};&lt;br/&gt;If (trial.sus_left_fb_10_choice.response == 38) {values.earth -= 1; values.nextearth = values.earth - 1;};&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_left_fb_10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_right_fb_10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_right_fb_10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susright_10, product_unsleft_10, earth_ani_mov; &lt;br/&gt;1000 = co2_susright_low, co2_unsleft_high; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("l")&lt;br/&gt;/ validresponse = ("l", "a")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_right_fb_10_choice.response == 38) {values.earth += 1; values.nextearth = values.earth + 1;};&lt;br/&gt;If (trial.sus_right_fb_10_choice.response == 30) {values.earth -= 1; values.nextearth = values.earth - 1;};&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_right_fb_10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Finally, in the outcome trial, just flip in the next value:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fb_10_outcome&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = earth_ani_mov, Mask, Mask1, Mask2]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.earth = values.nextearth;&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ timeout = 2000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 10 Mar 2020 14:55:16 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How to link video’s between trials depending on choices?</title><link>https://forums.millisecond.com/Topic28483.aspx</link><description>&lt;blockquote data-id="28482" class="if-quote-wrapper" unselectable="on" data-guid="1583849613820" id="if_insertedNode_1583849613386" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28482" 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="28482" 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="28482" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Amarins - 3/10/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28482"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;I am so sorry, of course! In the attachment you can find my Inquisit-file and all stimuli. Thanks in advance!&lt;a class="if-quote-goto quote-link" href="#" data-id="28482"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thank you. Here's what I don't understand. You increase or decrease values.earth (which is responsible for selecting the animation item number) depending on response in your choice trials:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_left_fb_10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_left_fb_10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susleft_10, product_unsright_10, earth_ani_mov; &lt;br/&gt;1000 = co2_susleft_low, co2_unsright_high; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_left_fb_10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_10_choice.response == 38) values.earth -= 1;&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_left_fb_10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_right_fb_10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_right_fb_10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susright_10, product_unsleft_10, earth_ani_mov; &lt;br/&gt;1000 = co2_susright_low, co2_unsleft_high; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("l")&lt;br/&gt;/ validresponse = ("l", "a")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_right_fb_10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_10_choice.response == 30) values.earth -= 1;&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ timeout = 15000&lt;br/&gt;/ responsetrial = (noresponse, sus_right_fb_10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;So far, so good. But then, in the outcome trial that follows every choice trial, you do so again:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fb_10_outcome&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = earth_ani_mov, Mask, Mask1, Mask2]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_left_fb_10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_10_choice.response == 38) values.earth -= 1;&lt;br/&gt;If (trial.sus_right_fb_10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_10_choice.response == 30) values.earth -= 1;&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ timeout = 2000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Why?&lt;br/&gt;&lt;br/&gt;In addition, the /ontrialend logic in the outcome trial is problematic, because depending on what exactly happened before, you'll in- or decrease values.earth by 2 (or not at all). Here's why:&lt;br/&gt;&lt;br/&gt;- Suppose the 1st choice trial in the block is sus_&lt;strong&gt;left&lt;/strong&gt;_fb_10_choice, and the response is 30. Then there's a 1st instance of the outcome trial.&lt;br/&gt;- Suppose the 2nd choice trial in the block is sus_&lt;strong&gt;right&lt;/strong&gt;_fb_10_choice, and the response is 38. Now things get problematic in the outcome trial:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fb_10_outcome&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = earth_ani_mov, Mask, Mask1, Mask2]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&lt;strong&gt;If (trial.sus_left_fb_10_choice.response == 30) values.earth += 1;&lt;/strong&gt;&lt;br/&gt;If (trial.sus_left_fb_10_choice.response == 38) values.earth -= 1;&lt;br/&gt;&lt;strong&gt;If (trial.sus_right_fb_10_choice.response == 38) values.earth += 1;&lt;/strong&gt;&lt;br/&gt;If (trial.sus_right_fb_10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ timeout = 2000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Both bolded conditions are true now: trial.sus_left_fb_10_choice's response is still 30 -- that was the 1st choice trial in the block. AND trial.sus_right_fb_10_choice's response is 38, that was the 2nd choice trial in the block. The consequence is that values.earth will be increased by 2.&lt;br/&gt;</description><pubDate>Tue, 10 Mar 2020 14:24:15 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: How to link video’s between trials depending on choices?</title><link>https://forums.millisecond.com/Topic28482.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;I am so sorry, of course! In the attachment you can find my Inquisit-file and all stimuli. Thanks in advance!</description><pubDate>Tue, 10 Mar 2020 13:18:02 GMT</pubDate><dc:creator>Amarins</dc:creator></item><item><title>RE: How to link video’s between trials depending on choices?</title><link>https://forums.millisecond.com/Topic28470.aspx</link><description>&lt;blockquote data-id="28468" class="if-quote-wrapper" unselectable="on" data-guid="1583760285206" id="if_insertedNode_1583760284341" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28468" 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="28468" 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="28468" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Amarins - 3/9/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28468"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt;&lt;br/&gt;For a simple two-options choice task (two types of products are presented left and right on the screen), I have feedback pictures/animations (earth_ani_mov) that change depending on the choices of participants. There are 5 choice-trials in a block, and the feedback can be positive or negative. I have 19 animations (called ‘etmov’), and start with the middle/baseline animation (etmov10) at trial 1. If participants choose the ‘sustainable option’, I want that etmov10 changes to etmov11 at the outcome at the first trial, and then I want trial 2 to start with etmov12. If the participant&amp;nbsp;chooses the ‘sustainable option’ at trial 2 again, I want that etmov12 changes to etmov13 at the end of the block, and that trial 3 starts with etmov14. And so on. (where the feedback becomes negative when participants choose the 'unsustainable option', then, at trial 3, etmov14 would via etmov13 back to etmov12). So, for example, when participants choose ‘unsustainable’ at trial 1, the animations decrease from etmov10 at trial1, to etmov1&amp;nbsp;ultimately at the end of trial 5.&lt;br/&gt;&lt;br/&gt;How can I make sure, that after each trial, the next animation in line is presented? &lt;br/&gt;When I run my script now, sometimes one animation is skipped in line and I cannot figure out why. &lt;br/&gt;Can anyone help me?&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;Below you find my script:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt T1_feedback&amp;gt;&lt;br/&gt;/ blocks = [1-8 = noreplace(block_fb_1s10, block_fb_2s10)] &lt;br/&gt;/ subjects = (2 of 2)&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block_fb_1s10&amp;gt;&lt;br/&gt;/ trials = [1 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 2 = fb_1s10_outcome; &lt;br/&gt;3 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 4 = fb_1s10_outcome;&lt;br/&gt;5 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 6 = fb_1s10_outcome;&lt;br/&gt;7 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 8 = fb_1s10_outcome;&lt;br/&gt;9 = noreplace(sus_left_fb_1s10_choice, sus_right_fb_1s10_choice); 10 = fb_1s10_outcome] &lt;br/&gt;/ onblockend = [values.earth = 10]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block_fb_2s10&amp;gt;&lt;br/&gt;/ trials = [1 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 2 = fb_2s10_outcome; &lt;br/&gt;3 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 4 = fb_2s10_outcome;&lt;br/&gt;5 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 6 = fb_2s10_outcome;&lt;br/&gt;7 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 8 = fb_2s10_outcome;&lt;br/&gt;9 = noreplace(sus_left_fb_2s10_choice, sus_right_fb_2s10_choice); 10 = fb_2s10_outcome] &lt;br/&gt;/ onblockend = [values.earth = 10]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_left_fb_1s10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_left_fb_1s10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susleft_10, product_unsright_10, earth_ani_mov; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_1s10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_1s10_choice.response == 38) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ responsetrial = (noresponse, sus_left_fb_1s10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_right_fb_1s10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_right_fb_1s10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susright_10, product_unsleft_10, earth_ani_mov; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("l")&lt;br/&gt;/ validresponse = ("l", "a")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_right_fb_1s10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_1s10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ responsetrial = (noresponse, sus_right_fb_1s10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fb_1s10_outcome&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = earth_ani_mov, Mask, Mask1, Mask2]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_1s10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_1s10_choice.response == 38) values.earth -= 1;&lt;br/&gt;If (trial.sus_right_fb_1s10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_1s10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_left_fb_2s10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_left_fb_2s10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susleft_10, product_unsright_10, earth_ani_mov; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ validresponse = ("a", "l")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_2s10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_2s10_choice.response == 38) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ responsetrial = (noresponse, sus_left_fb_2s10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial sus_right_fb_2s10_choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [if (trial.sus_right_fb_2s10_choice.response != 0) {values.itemnumber = list.allitems10.nextindex;};]&lt;br/&gt;/ stimulustimes = [1 = product_susright_10, product_unsleft_10, earth_ani_mov; &lt;br/&gt;2000 = timer, reminder]&lt;br/&gt;/ correctresponse = ("l")&lt;br/&gt;/ validresponse = ("l", "a")&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_right_fb_2s10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_2s10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;/ responsetrial = (noresponse, sus_right_fb_2s10_choice)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fb_2s10_outcome&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = earth_ani_mov]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;If (trial.sus_left_fb_2s10_choice.response == 30) values.earth += 1;&lt;br/&gt;If (trial.sus_left_fb_2s10_choice.response == 38) values.earth -= 1;&lt;br/&gt;If (trial.sus_right_fb_2s10_choice.response == 38) values.earth += 1;&lt;br/&gt;If (trial.sus_right_fb_2s10_choice.response == 30) values.earth -= 1;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture product_susleft_10&amp;gt;&lt;br/&gt;/ items = sustainable_10&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture product_unsright_10&amp;gt;&lt;br/&gt;/ items = unsustainable_10&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;/ select = current(product_susleft_10)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture product_susright_10&amp;gt;&lt;br/&gt;/ items = sustainable_10&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture product_unsleft_10&amp;gt;&lt;br/&gt;/ items = unsustainable_10&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;/ select = current(product_susright_10)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list allitems10&amp;gt;&lt;br/&gt;/ poolsize = 25&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item sustainable_10&amp;gt;&lt;br/&gt;/1 = "1s2.jpg"&lt;br/&gt;/2 = "2s2.jpg"&lt;br/&gt;/3 = "7s2.jpg"&lt;br/&gt;t/m 25&lt;br/&gt;&lt;br/&gt;&amp;lt;item unsustainable_10&amp;gt;&lt;br/&gt;/1 = "1u2.jpg"&lt;br/&gt;/2 = "2u2.jpg"&lt;br/&gt;/3 = "7u2.jpg"&lt;br/&gt;t/m 25&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ earth = 10&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;video earth_ani_mov&amp;gt;&lt;br/&gt;/ items = earth_video&lt;br/&gt;/ loop = true&lt;br/&gt;/ select = values.earth&lt;br/&gt;&amp;lt;/video&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list earth&amp;gt;&lt;br/&gt;/ items = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)&lt;br/&gt;/ replace = true&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item earth_video&amp;gt;&lt;br/&gt;/1 = "etmov1.mp4"&lt;br/&gt;/2 = "etmov2.mp4"&lt;br/&gt;/3 = "etmov3.mp4"&lt;br/&gt;/4 = "etmov4.mp4"&lt;br/&gt;/5 = "etmov5.mp4"&lt;br/&gt;/6 = "etmov6.mp4"&lt;br/&gt;/7 = "etmov7.mp4"&lt;br/&gt;/8 = "etmov8.mp4"&lt;br/&gt;/9 = "etmov9.mp4"&lt;br/&gt;/10 = "etmov10.mp4"&lt;br/&gt;/11 = "etmov11.mp4"&lt;br/&gt;/12 = "etmov12.mp4"&lt;br/&gt;/13 = "etmov13.mp4"&lt;br/&gt;/14 = "etmov14.mp4"&lt;br/&gt;/15 = "etmov15.mp4"&lt;br/&gt;/16 = "etmov16.mp4"&lt;br/&gt;/17 = "etmov17.mp4"&lt;br/&gt;/18 = "etmov18.mp4"&lt;br/&gt;/19 = "etmov19.mp4"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="28468"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Would it be possible to please provide code that's actually runnable? I.e. please make sure all elements referenced in the code are actually present, and please provide any and all files the code requires. Thank you.</description><pubDate>Mon, 09 Mar 2020 13:25:34 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>