﻿<?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  » DDT Money Food Deleting money blocks and adding choices</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 05 May 2026 07:38:03 GMT</lastBuildDate><ttl>20</ttl><item><title>DDT Money Food Deleting money blocks and adding choices</title><link>https://forums.millisecond.com/Topic20072.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I have two issues I'm hoping get some help with. &lt;br/&gt;1.&amp;nbsp; I'm trying to modify the DDT Money and Food task so that both blocks run as food. With that being said, how would I delete the money blocks and change these blocks to food blocks? &lt;br/&gt;2. When the user is prompted to choose between 2 foods, how I can I write the code to allow for four choices?&lt;br/&gt;&lt;br/&gt;Any insight would be greatly appreciated. Thanks!&lt;br/&gt;</description><pubDate>Thu, 10 Nov 2016 12:41:57 GMT</pubDate><dc:creator>sandy_d</dc:creator></item><item><title>RE: DDT Money Food Deleting money blocks and adding choices</title><link>https://forums.millisecond.com/Topic20085.aspx</link><description>&lt;div data-id="20074" class="if-quote-wrapper" unselectable="on" data-guid="1478810449546"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20074" 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="20074" 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="20074" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, November 09, 2016&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20074"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20072" class="if-quote-wrapper" unselectable="on" data-guid="1478810449546"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20072" 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="20072" 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="20072" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;sandy_d - Wednesday, November 09, 2016&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20072"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I have two issues I'm hoping get some help with. &lt;br/&gt;1.&amp;nbsp; I'm trying to modify the DDT Money and Food task so that both blocks run as food. With that being said, how would I delete the money blocks and change these blocks to food blocks? &lt;br/&gt;2. When the user is prompted to choose between 2 foods, how I can I write the code to allow for four choices?&lt;br/&gt;&lt;br/&gt;Any insight would be greatly appreciated. Thanks!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20072"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Re. #1: There should be no need to delete the money blocks. Simply do not run them by removing them from the &amp;lt;expt&amp;gt; elements' /blocks attributes. Similarly, you can add additional instances of the food blocks there.&lt;br/&gt;&lt;br/&gt;Re. #2: Define two additional &amp;lt;picture&amp;gt; elements and adjust all four &amp;lt;picture&amp;gt; elements' /position.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture foodapic&amp;gt;&lt;br/&gt;/ items = foodpics&lt;br/&gt;/ select = 1&lt;br/&gt;/ position = (30%, 30%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture foodbpic&amp;gt;&lt;br/&gt;/ items = foodpics&lt;br/&gt;/ select = 2&lt;br/&gt;/ position = (70%, 30%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture foodcpic&amp;gt;&lt;br/&gt;/ items = foodpics&lt;br/&gt;/ select = 3&lt;br/&gt;/ position = (30%, 70%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture fooddpic&amp;gt;&lt;br/&gt;/ items = foodpics&lt;br/&gt;/ select = 4&lt;br/&gt;/ position = (70%, 70%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;add two additional items to &lt;br/&gt;&lt;br/&gt;&amp;lt;item foodpics&amp;gt;&lt;br/&gt;/1 = "macaroni.jpg"&lt;br/&gt;/2 = "chicken.jpg"&lt;br/&gt;&lt;strong&gt;/3 = "broccoli.jpg"&lt;br/&gt;/4 = "hamburger.jpg"&lt;/strong&gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;Do the same for the &amp;lt;text&amp;gt; elements serving as captions:&lt;br/&gt;&lt;br/&gt;&amp;lt;text foodatxt&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 2&lt;br/&gt;/ position = (30%, 50%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text foodbtxt&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 3&lt;br/&gt;/ position = (70%, 50%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text foodctxt&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 4&lt;br/&gt;/ position = (30%, 90%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fooddtxt&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 5&lt;br/&gt;/ position = (70%, 90%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Adjust the the position of &lt;br/&gt;&lt;br/&gt;&amp;lt;text foodcaption&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 1&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;as well.&lt;br/&gt;&lt;br/&gt;Have the foodchoice trial display the newly added objects and add them to its response options and conditional logic:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial foodchoice&amp;gt;&lt;br/&gt;/ stimulusframes = [1=foodcaption, foodapic, foodbpic, &lt;strong&gt;foodcpic, fooddpic&lt;/strong&gt;, foodatxt, foodbtxt, &lt;strong&gt;foodctxt, fooddtxt&lt;/strong&gt;]&lt;br/&gt;/ validresponse = (foodapic, foodbpic, &lt;strong&gt;foodcpic, fooddpic&lt;/strong&gt;)&lt;br/&gt;/ ontrialend = [if(trial.foodchoice.response=="foodapic")values.foodchoice=1]&lt;br/&gt;/ ontrialend = [if(trial.foodchoice.response=="foodbpic")values.foodchoice=2]&lt;br/&gt;&lt;strong&gt;/ ontrialend = [if(trial.foodchoice.response=="foodcpic")values.foodchoice=3]&lt;br/&gt;/ ontrialend = [if(trial.foodchoice.response=="fooddpic")values.foodchoice=4]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Some additional adjustments along the same lines need to be made to &amp;lt;item objectpicitems&amp;gt;, &amp;lt;item objectdescriptions&amp;gt;. You'll find all of that in the attached script.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20074"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thank you so much for the help!&lt;br/&gt;</description><pubDate>Thu, 10 Nov 2016 12:41:57 GMT</pubDate><dc:creator>sandy_d</dc:creator></item><item><title>RE: DDT Money Food Deleting money blocks and adding choices</title><link>https://forums.millisecond.com/Topic20074.aspx</link><description>&lt;div data-id="20072" class="if-quote-wrapper" unselectable="on" data-guid="1478722002509"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20072" 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="20072" 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="20072" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;sandy_d - Wednesday, November 09, 2016&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20072"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I have two issues I'm hoping get some help with. &lt;br/&gt;1.&amp;nbsp; I'm trying to modify the DDT Money and Food task so that both blocks run as food. With that being said, how would I delete the money blocks and change these blocks to food blocks? &lt;br/&gt;2. When the user is prompted to choose between 2 foods, how I can I write the code to allow for four choices?&lt;br/&gt;&lt;br/&gt;Any insight would be greatly appreciated. Thanks!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20072"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Re. #1: There should be no need to delete the money blocks. Simply do not run them by removing them from the &amp;lt;expt&amp;gt; elements' /blocks attributes. Similarly, you can add additional instances of the food blocks there.&lt;br/&gt;&lt;br/&gt;Re. #2: Define two additional &amp;lt;picture&amp;gt; elements and adjust all four &amp;lt;picture&amp;gt; elements' /position.&lt;br/&gt;&lt;br/&gt;&amp;lt;picture foodapic&amp;gt;&lt;br/&gt;/ items = foodpics&lt;br/&gt;/ select = 1&lt;br/&gt;/ position = (30%, 30%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture foodbpic&amp;gt;&lt;br/&gt;/ items = foodpics&lt;br/&gt;/ select = 2&lt;br/&gt;/ position = (70%, 30%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture foodcpic&amp;gt;&lt;br/&gt;/ items = foodpics&lt;br/&gt;/ select = 3&lt;br/&gt;/ position = (30%, 70%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture fooddpic&amp;gt;&lt;br/&gt;/ items = foodpics&lt;br/&gt;/ select = 4&lt;br/&gt;/ position = (70%, 70%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;add two additional items to &lt;br/&gt;&lt;br/&gt;&amp;lt;item foodpics&amp;gt;&lt;br/&gt;/1 = "macaroni.jpg"&lt;br/&gt;/2 = "chicken.jpg"&lt;br/&gt;&lt;strong&gt;/3 = "broccoli.jpg"&lt;br/&gt;/4 = "hamburger.jpg"&lt;/strong&gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;Do the same for the &amp;lt;text&amp;gt; elements serving as captions:&lt;br/&gt;&lt;br/&gt;&amp;lt;text foodatxt&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 2&lt;br/&gt;/ position = (30%, 50%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text foodbtxt&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 3&lt;br/&gt;/ position = (70%, 50%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text foodctxt&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 4&lt;br/&gt;/ position = (30%, 90%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fooddtxt&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 5&lt;br/&gt;/ position = (70%, 90%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Adjust the the position of &lt;br/&gt;&lt;br/&gt;&amp;lt;text foodcaption&amp;gt;&lt;br/&gt;/ items = foodcaptions&lt;br/&gt;/ select = 1&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;as well.&lt;br/&gt;&lt;br/&gt;Have the foodchoice trial display the newly added objects and add them to its response options and conditional logic:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial foodchoice&amp;gt;&lt;br/&gt;/ stimulusframes = [1=foodcaption, foodapic, foodbpic, &lt;strong&gt;foodcpic, fooddpic&lt;/strong&gt;, foodatxt, foodbtxt, &lt;strong&gt;foodctxt, fooddtxt&lt;/strong&gt;]&lt;br/&gt;/ validresponse = (foodapic, foodbpic, &lt;strong&gt;foodcpic, fooddpic&lt;/strong&gt;)&lt;br/&gt;/ ontrialend = [if(trial.foodchoice.response=="foodapic")values.foodchoice=1]&lt;br/&gt;/ ontrialend = [if(trial.foodchoice.response=="foodbpic")values.foodchoice=2]&lt;br/&gt;&lt;strong&gt;/ ontrialend = [if(trial.foodchoice.response=="foodcpic")values.foodchoice=3]&lt;br/&gt;/ ontrialend = [if(trial.foodchoice.response=="fooddpic")values.foodchoice=4]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Some additional adjustments along the same lines need to be made to &amp;lt;item objectpicitems&amp;gt;, &amp;lt;item objectdescriptions&amp;gt;. You'll find all of that in the attached script.&lt;br/&gt;</description><pubDate>Wed, 09 Nov 2016 12:45:50 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>