﻿<?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 3  » Problem with the include function</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 01 May 2026 12:26:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Problem with the include function</title><link>https://forums.millisecond.com/Topic8602.aspx</link><description>&lt;p&gt;Thank you David. &lt;/p&gt;
&lt;p&gt;This is a very good idea.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Schilleriana&lt;/p&gt;</description><pubDate>Wed, 22 Aug 2012 12:34:38 GMT</pubDate><dc:creator>schilleriana</dc:creator></item><item><title>RE: Problem with the include function</title><link>https://forums.millisecond.com/Topic8600.aspx</link><description>&lt;p&gt;There are several options. One would be to *not* use an &amp;lt;item&amp;gt; element to store the correct responses, but instead list them in a single long string. I.e.&lt;/p&gt;
&lt;p&gt;&amp;lt;values&amp;gt;&lt;br /&gt;/ validanswers = "Car,Cat,Case,Chair,Choir,..."&lt;br /&gt;[...]&lt;br /&gt;&amp;lt;/values&amp;gt;&lt;/p&gt;
&lt;p&gt;and then use the contains() function to check if the given response is contained in the string.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Wed, 22 Aug 2012 09:42:26 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Problem with the include function</title><link>https://forums.millisecond.com/Topic8599.aspx</link><description>&lt;p&gt;Hello Dave&lt;/p&gt;
&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;Yes, I see the problem with the redundancy&amp;nbsp;[:)] &lt;/p&gt;
&lt;p&gt;I will to check whether the synonym are in the list or not. The problem is to check the whole list of the items in a recursive way. &amp;nbsp; &lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&amp;lt;expressions&amp;gt;&lt;br /&gt;
/ answer = getitem(item.ganzwords, values.ganz_itemnumber)&lt;br /&gt;
&amp;lt;/expressions&amp;gt;&lt;/p&gt;
&lt;p&gt;When I use the Expression function, I can go to the whole list of the items with increasing the values.ganz_itemnumber. The problem for me is&lt;/p&gt;
&lt;p&gt;the expression&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&amp;lt;expressions&amp;gt;&lt;br /&gt;
/ answer = getitem(item.ganzwords, &lt;b&gt;values.ganz_itemnumber&lt;/b&gt;)&lt;br /&gt;
&amp;lt;/expressions&amp;gt;&lt;/p&gt;
&lt;p&gt;I can&amp;acute;t use a "for/while" command.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will here increase the values.ganz_itemnumber in a recursive way and not to use in a such way&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;if( contains(textbox.handlung_eingabe1.response, expressions.answer) == true ) )&amp;nbsp; {values.handlung_richtige = concat(concat(values.handlung_richtige," "),expressions.answer)}; &lt;b&gt;values.ganz_itemnumber+1&lt;/b&gt;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;if( contains(textbox.handlung_eingabe1.response, expressions.answer) == true ) ) {values.handlung_richtige = concat(concat(values.handlung_richtige," "),expressions.answer)}; &lt;b&gt;values.ganz_itemnumber+1&lt;/b&gt;&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;if( contains(textbox.handlung_eingabe1.response, expressions.answer) == true ) ) {values.handlung_richtige = concat(concat(values.handlung_richtige," "),expressions.answer)}; &lt;b&gt;values.ganz_itemnumber+1&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Do you have any solutions?&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Schilleriana&lt;/p&gt;</description><pubDate>Wed, 22 Aug 2012 09:20:11 GMT</pubDate><dc:creator>schilleriana</dc:creator></item><item><title>RE: Problem with the include function</title><link>https://forums.millisecond.com/Topic8598.aspx</link><description>&lt;p&gt;Seems like the include function is simply overwhelmed by the sheer length of the to-be-included scripts, ultimately resulting in a hard crash. Until this bug gets fixed, your options are:&lt;/p&gt;
&lt;p&gt;- Do not use include in this particular case. Keep everything in a single file instead.&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;- Shorten your scripts by revising the scoring. There is a lot of redundancy and you could streamline things dramatically by making use of string functions (e.g. contains();) and recursive expressions.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Wed, 22 Aug 2012 08:24:10 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Problem with the include function</title><link>https://forums.millisecond.com/Topic8596.aspx</link><description>&lt;p&gt;Hello Dave&lt;/p&gt;
&lt;p&gt;&lt;span class="st"&gt;Thanks to your advices I've revised my code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I revised the code (&lt;i&gt;experimentkreativganz.exp&lt;/i&gt;, &lt;i&gt;experimentkreativhoch.exp&lt;/i&gt; and&lt;i&gt; testDurchgang.exp&lt;/i&gt;), but the problem is, that Inquisit crashed after clicking the "run" button (&lt;i&gt;testDurchgang.exp&lt;/i&gt;). I have, when I will use the &amp;lt;include&amp;gt; function, no possibility to check the errors.&lt;/p&gt;
&lt;p&gt;I have put a single file (experimentkreativganz_single_file.exp) in the rar file. With this one, Inquisit will run without a problem.&lt;/p&gt;

&lt;p&gt;(The new file: http://130.60.233.170/Test_Durchgang_version2.rar )&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Schilleriana&lt;/p&gt;</description><pubDate>Wed, 22 Aug 2012 07:11:27 GMT</pubDate><dc:creator>schilleriana</dc:creator></item><item><title>RE: Problem with the include function</title><link>https://forums.millisecond.com/Topic8595.aspx</link><description>&lt;p&gt;#1: The following &amp;lt;survey&amp;gt; definition is wrong:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;survey kreativ_ganz_survey&amp;gt;&lt;br /&gt;/ pages =[1=&lt;span style="color: #ff0000;"&gt;surveypage &lt;/span&gt;kreativ_ganz;2=&lt;span style="color: #ff0000;"&gt;surveypage &lt;/span&gt;kreativ_ganz_ende]&lt;br /&gt;&amp;lt;/survey&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;#2: &amp;lt;surveypage kreativ_hoch&amp;gt; refers to an expression that does not exist:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;Expression 'expressions.answer_hoch&lt;span style="color: #ff0000;"&gt;h&lt;/span&gt;' is invalid. Expression contains an unknown element or property name.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;#3: Your &amp;lt;expressions&amp;gt; refer to an &amp;lt;item verstehenwords&amp;gt; element which does not exist in any of the files:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;expressions&amp;gt;&lt;br /&gt;/ answer_hoch = getitem(&lt;span style="color: #ff0000;"&gt;item.verstehenwords&lt;/span&gt;, values.verstehen_itemnumber)&lt;br /&gt;/ answer_ganz = getitem(&lt;span style="color: #ff0000;"&gt;item.verstehenwords&lt;/span&gt;, values.ganz_itemnumber)&lt;br /&gt;&amp;lt;/expressions&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I recommend you revise your code carefully.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Wed, 22 Aug 2012 06:03:14 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>Problem with the include function</title><link>https://forums.millisecond.com/Topic8594.aspx</link><description>&lt;p&gt;We have a problem with the include function. &lt;/p&gt;
&lt;p&gt;We have two files &lt;i&gt;experimentkreativhoch.exp&lt;/i&gt; and &lt;i&gt;experimentkreativganz.exp&lt;/i&gt;, which are included in the &lt;i&gt;testDurchgang.exp&lt;/i&gt;.&lt;/p&gt;
&lt;p&gt;The &amp;lt;expressions&amp;gt;, &amp;lt;values&amp;gt; and &amp;lt;defaults&amp;gt; tags are in the testDurchgang.exp file.&lt;/p&gt;
&lt;p&gt;The problem now is to run the experiment. The Inquisit Application crashed immediately after clicking the run button.&lt;/p&gt;
&lt;p&gt;Scripts: (http://130.60.233.170/Test_Durchgang.rar)&lt;/p&gt;

&lt;p&gt;We hope someone can help us!&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;schilleriana&lt;/p&gt;




</description><pubDate>Wed, 22 Aug 2012 05:44:57 GMT</pubDate><dc:creator>schilleriana</dc:creator></item></channel></rss>