<?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: Skip parts in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427265#M159202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, got it, but with Exit Script (condition) you will kick out of the whole script, and that's not what I'm looking for. Only Jump over a passage of code.&lt;/P&gt;&lt;P&gt;But with the idea from &lt;STRONG&gt;flipside&lt;/STRONG&gt; it work's. It's also a workarround, but to export some script in text, load it with $Include and overjump some $Included files.&lt;/P&gt;&lt;P&gt;That's ok for this case and the customer as well. So I can load all Files with "*.txt* and choose, which file should be loaded or should be skipped. So it's not necessary to jump into script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (condition) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Include;&lt;/P&gt;&lt;P&gt;endif;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regular code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks @Miguel and @flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings from Switzerland&lt;/P&gt;&lt;P&gt;Ramon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 10:53:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-22T10:53:48Z</dc:date>
    <item>
      <title>Skip parts in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427260#M159197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to skip a part in a load script.&lt;/P&gt;&lt;P&gt;Ex: IF NOOFROWS('TEST') = 0 THEN &lt;STRONG&gt;"Skip this Sheet, or Skip this Code, or GoTo another part of Code?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would be easier than: &lt;/P&gt;&lt;P&gt;IF NOOFROWS('TEST') &amp;gt; 0 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here comes the Code&lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Less Code and no nesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea how to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adv.&lt;/P&gt;&lt;P&gt;Ramon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 11:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427260#M159197</guid>
      <dc:creator />
      <dc:date>2012-10-18T11:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Skip parts in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427261#M159198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I got your question right, what you want is to prevent the execution of some part of your script depending on certain condition. Then the answer is that you must use the IF ... THEN ... END IF and all the code you want to execute (or prevent execution) in between. You can warp entire tabs, but take into account that the script, although you see it in tabs, is sequential and executed line by line and goes from the first line in the first tab at the left to the last line in the last tab on the left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tabs are only visual hints, the script (you will see it if you export it to a QVS file) is only one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to create an idea to propose a new feature in the &lt;A _jive_internal="true" href="https://community.qlik.com/ideas"&gt;Ideas&lt;/A&gt; section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 12:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427261#M159198</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-10-18T12:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Skip parts in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427262#M159199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Surely I'm familliar with the conditioinal functions like IF, SWITCH etc. but in big blocks of code you ever habe to indent. So in some cases the code will be to much nested to read. What I ment is a funcion like "Exit Script/Sub/For/Do".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same funcional way could be a function like "Exit IF/SWITCH".&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CurrTable = 'TableName';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Exists('DisplayName','$CurrTable)') then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; here comes the code (many lines and nests)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&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;&amp;nbsp; ....&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;EndIf;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the other case you could do it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not Exists( ........) then Exit "CurrentSheet", or "Exit ....."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I solved the issue with Sub(), Exit Sub(), but it's a workarround ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know, it's more a nice to have issue, but if they had been a solution I had taken that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Sorry for my english &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Ramon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 09:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427262#M159199</guid>
      <dc:creator />
      <dc:date>2012-10-22T09:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Skip parts in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427263#M159200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is a solution, but would calling the code using INCLUDE statements help?&amp;nbsp; My idea is to break the code up into separate qvw documents which have their own -prj folders, so ScriptA.qvw code would be called by ScriptB.qvw ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(Include=ScriptA-prj\LoadScript.txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 09:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427263#M159200</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-10-22T09:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Skip parts in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427264#M159201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, there is a EXIT keyword to be used in the script. Check &lt;A _jive_internal="true" href="https://community.qlik.com/thread/45822"&gt;this example&lt;/A&gt; or &lt;A _jive_internal="true" href="https://community.qlik.com/message/89616#89616"&gt;this example&lt;/A&gt; to see how it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 10:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427264#M159201</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-10-22T10:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Skip parts in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427265#M159202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, got it, but with Exit Script (condition) you will kick out of the whole script, and that's not what I'm looking for. Only Jump over a passage of code.&lt;/P&gt;&lt;P&gt;But with the idea from &lt;STRONG&gt;flipside&lt;/STRONG&gt; it work's. It's also a workarround, but to export some script in text, load it with $Include and overjump some $Included files.&lt;/P&gt;&lt;P&gt;That's ok for this case and the customer as well. So I can load all Files with "*.txt* and choose, which file should be loaded or should be skipped. So it's not necessary to jump into script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (condition) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $Include;&lt;/P&gt;&lt;P&gt;endif;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regular code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks @Miguel and @flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings from Switzerland&lt;/P&gt;&lt;P&gt;Ramon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 10:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427265#M159202</guid>
      <dc:creator />
      <dc:date>2012-10-22T10:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Skip parts in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427266#M159203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;Let vLine = if(Condition,'','Exit Script');&lt;/P&gt;&lt;P&gt;$(vLine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If condition is false $(vLine) will be replace with Exit Script and the Script will stop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 20:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/427266#M159203</guid>
      <dc:creator>lfg</dc:creator>
      <dc:date>2013-03-06T20:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Skip parts in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/1999950#M1221356</link>
      <description>&lt;P&gt;I know this is a really old post, but I use a fairly tidy workaround.&lt;/P&gt;
&lt;P&gt;I have a section called 'Skip from...' with the code 'If 1=2 Then'&lt;/P&gt;
&lt;P&gt;Next comes all the sections of code I may or may not want to run.&lt;/P&gt;
&lt;P&gt;Finally, a section called '...Skip to' with the code 'Endif'&lt;/P&gt;
&lt;P&gt;(I use this for testing parts of script when I don't want to re-order sections or use 'exit script')&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 08:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Skip-parts-in-Load-Script/m-p/1999950#M1221356</guid>
      <dc:creator>6982blakey</dc:creator>
      <dc:date>2022-11-03T08:02:41Z</dc:date>
    </item>
  </channel>
</rss>

