<?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: How to use if statement before a loop takes place in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873739#M1013705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is an issue that I hope Qlik will eventually resolve.&lt;/P&gt;&lt;P&gt;There are also some operators in set_analysis (like the -=) that the syntax_checker does not recognize, so that - and all the code following - is underlined in red. That is quite annoying if you have a lengthy formula because there's no way to tell whether the remainder after that one piece is correct or not ... that's why I don't use those things although they would make the code more compact and more elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 09:38:36 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-04-21T09:38:36Z</dc:date>
    <item>
      <title>How to use if statement before a loop takes place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873732#M1013694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a for each loop within a QV app that reads monthly files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each csv has the month extension next to it, for example file_201101.csv, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;file&lt;/SPAN&gt;_201102.csv, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;file&lt;/SPAN&gt;_201103.csv, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my loop looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt; each&lt;/SPAN&gt; &lt;SPAN style="color: #333333;"&gt;File&lt;/SPAN&gt; &lt;SPAN style="color: #3366ff;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;filelist&lt;/SPAN&gt; &lt;SPAN style="color: #333333;"&gt;$(path)&lt;/SPAN&gt;file_*.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp; "TABLE":&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3366ff;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #333333;"&gt;$(File)&lt;/SPAN&gt; (&lt;SPAN style="color: #3366ff;"&gt;txt&lt;/SPAN&gt;, &lt;SPAN style="color: #3366ff;"&gt;ansi&lt;/SPAN&gt;, &lt;SPAN style="color: #3366ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #3366ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #3366ff;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN style="color: #3366ff;"&gt;is&lt;/SPAN&gt; ',', &lt;SPAN style="color: #3366ff;"&gt;no&lt;/SPAN&gt; &lt;SPAN style="color: #3366ff;"&gt;quotes&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I wish to do is to only load files that has a month extension bigger than 201101, without having to delete the physical csv's on our server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873732#M1013694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T09:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if statement before a loop takes place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873733#M1013695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;use this before your loop to keep only numbers and then youc can make test over it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if KeepChar('file_201102.csv','0123456789')&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;201101&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;.......&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873733#M1013695</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2015-04-21T09:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if statement before a loop takes place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873734#M1013696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just put that loop inside an IF_THEN clause where you query that number (201101) or just the middle two (11 in this case) to execute the loop only on those - or you might have to put it inside the loop, but around the LOAD, I'm not sure.&lt;/P&gt;&lt;P&gt;Probably the latter - that way the loop will still parse all files, but load only those that you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873734#M1013696</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-04-21T09:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if statement before a loop takes place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873735#M1013697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;for&lt;/STRONG&gt; each&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;File&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;filelist&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;$(path)&lt;/SPAN&gt;file_*.csv&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF Num(Mid('file_201101.csv', 6, 6)) &amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;201101 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; "TABLE":&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #ff0000;"&gt;date&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #333333;"&gt;$(File)&lt;/SPAN&gt; (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;txt&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;ansi&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;is&lt;/SPAN&gt; ',', &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;no&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #3366ff;"&gt;quotes&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Hope this helps you.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Regards,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Jagan.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873735#M1013697</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-04-21T09:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if statement before a loop takes place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873736#M1013698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did almost in the same way. the only thing was that I put a semicolon after endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I took that out, my app loaded perfectly. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873736#M1013698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if statement before a loop takes place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873737#M1013699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that there is a nice keyword in QV Script called UNLESS. If you use that one, your script becomes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;FOR EACH File IN filelist ('$(path)file_*.csv')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNLESS Num#(Mid(Subfield('$(File)', '\', -1), 6, 6)) &amp;lt; 201101&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE: LOAD date FROM [$(File)] (txt, ansi, embedded labels, delimiter is ',', no quotes);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While it works perfectly, unfortunately the syntax checker does not like it. But it makes compact code possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873737#M1013699</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-04-21T09:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if statement before a loop takes place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873738#M1013702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;be careful if there is a space in the file's name the mid function will retunrs fals results .&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873738#M1013702</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2015-04-21T09:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if statement before a loop takes place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873739#M1013705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is an issue that I hope Qlik will eventually resolve.&lt;/P&gt;&lt;P&gt;There are also some operators in set_analysis (like the -=) that the syntax_checker does not recognize, so that - and all the code following - is underlined in red. That is quite annoying if you have a lengthy formula because there's no way to tell whether the remainder after that one piece is correct or not ... that's why I don't use those things although they would make the code more compact and more elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 09:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873739#M1013705</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-04-21T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if statement before a loop takes place</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873740#M1013707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my scripts are often filled with these wiggly lines, unforntunately. Ever tried adding LOAD prefixes by way of a variable to change an explicit table name (on the very first run) into a CONCATENATE (Tablename) (on all subsequent runs)? You'll promptly get an angry LOAD statement looking back at you. But it does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you skip all syntax checker-averse but legal code in QlikView you're missing out on a lot of interesting (and efficient) techniques. That's one of the reasons why I use an external editor as much as possible. Haven't found a solution for expressions though...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 10:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-statement-before-a-loop-takes-place/m-p/873740#M1013707</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-04-21T10:10:48Z</dc:date>
    </item>
  </channel>
</rss>

