<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why is the include variable executed? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2436578#M97044</link>
    <description>&lt;P&gt;Like mentioned I'm not sure how to claim this behaviour. Thinkable would be for example that the exit script; statement is newer as must_include and is therefore during the run-time later evaluated or there were other intended scenarios to give it a higher priority (never checked but it would be a valide use.case), like: closing connections and cleaning the script after a script-error happens or maybe triggering further tasks to avoid any erroneous data or an instable system.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2024 07:17:04 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-04-02T07:17:04Z</dc:date>
    <item>
      <title>Why is the include variable executed?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435430#M96967</link>
      <description>&lt;P&gt;Dear All&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The include variable is located behind the exit clause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;This script is not interrupted in the exit clause.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is the include variable executed?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*********** Script&amp;nbsp; new *****&lt;/P&gt;
&lt;DIV&gt;vServername = ComputerName() ;&lt;/DIV&gt;
&lt;DIV&gt;trace $(vServername);&lt;/DIV&gt;
&lt;DIV&gt;if '$(vServername)' = 'QlikDev' then&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; trace '------1';&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;else&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; trace '------2';&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;end if&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;exit script;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;vTargetPath_qvs = 'lib://File_Folder ;&lt;/DIV&gt;
&lt;DIV&gt;$(Must_Include=[$(vTargetPath_qvs)/AUTH/Authorization.qvs]);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;exit script;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*************** Script end&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Qlik Sense Version : Nov 2023 patch 7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regard&lt;/P&gt;
&lt;P&gt;Hanna.choi&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 07:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435430#M96967</guid>
      <dc:creator>hanna_choi</dc:creator>
      <dc:date>2024-03-28T07:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the include variable executed?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435438#M96968</link>
      <description>&lt;P&gt;Hi Hanna,&lt;/P&gt;
&lt;P&gt;if you already reload the script without "exit script" the variable after exit script will still remain in your application.&lt;/P&gt;
&lt;P&gt;If you want to remove the variable you have to do it manually.&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 07:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435438#M96968</guid>
      <dc:creator>vuan</dc:creator>
      <dc:date>2024-03-28T07:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the include variable executed?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435452#M96969</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/291468"&gt;@vuan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;BR /&gt;Does include syntax mean it runs every time because it's a variable?&lt;/P&gt;
&lt;P&gt;Are the variables executed unconditionally regardless of the exit clause?&lt;/P&gt;
&lt;P&gt;Best Regard&lt;/P&gt;
&lt;P&gt;Hanna.choi&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 07:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435452#M96969</guid>
      <dc:creator>hanna_choi</dc:creator>
      <dc:date>2024-03-28T07:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the include variable executed?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435463#M96973</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;did you get an error like this one&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vuan_0-1711613867169.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162874i1D3E59F333492A23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vuan_0-1711613867169.png" alt="vuan_0-1711613867169.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or is your issue that you don't want to have the variable &lt;SPAN&gt;vTargetPath_qvs&amp;nbsp;&lt;/SPAN&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KR&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 08:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435463#M96973</guid>
      <dc:creator>vuan</dc:creator>
      <dc:date>2024-03-28T08:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the include variable executed?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435614#M96987</link>
      <description>&lt;P&gt;It's a behaviour which exists already in quite old QlikView releases and I assume it is there since implementing this feature. I'm not sure if it's really a bug which nobody noticed because the first documented usage was only include and not must_include and it don't happens to include.&lt;/P&gt;
&lt;P&gt;I could imagine that if it would be a classical bug that fixing it shouldn't be very expensive - even if the priority for this case isn't very high. Therefore I think it's more an accepted side-effect to the way how the script is parsed and transferred to the engine which may much more sophisticated to solve.&lt;/P&gt;
&lt;P&gt;The practically solution is therefore to comment the must_include. Not yet tried but probably possible might be to wrap the must_include within another include or a sub-routine or to build the statement on-the-fly ...&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 12:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435614#M96987</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-03-28T12:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the include variable executed?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435780#M97000</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/291468"&gt;@vuan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am curious Why the script is not stop at the exit script.&lt;BR /&gt;I don't understand why the error is happen at the"must_include" sentence.&lt;BR /&gt;"must_include" sentence is located after "exit script" .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regard&lt;/P&gt;
&lt;P&gt;hanna.choi&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 03:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435780#M97000</guid>
      <dc:creator>hanna_choi</dc:creator>
      <dc:date>2024-03-29T03:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the include variable executed?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435782#M97002</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/76148"&gt;@marcus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you think that is bug?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regard&lt;/P&gt;
&lt;P&gt;Hanna.choi&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 02:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2435782#M97002</guid>
      <dc:creator>hanna_choi</dc:creator>
      <dc:date>2024-03-29T02:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the include variable executed?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2436578#M97044</link>
      <description>&lt;P&gt;Like mentioned I'm not sure how to claim this behaviour. Thinkable would be for example that the exit script; statement is newer as must_include and is therefore during the run-time later evaluated or there were other intended scenarios to give it a higher priority (never checked but it would be a valide use.case), like: closing connections and cleaning the script after a script-error happens or maybe triggering further tasks to avoid any erroneous data or an instable system.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 07:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-is-the-include-variable-executed/m-p/2436578#M97044</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-02T07:17:04Z</dc:date>
    </item>
  </channel>
</rss>

