<?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 Nesting IF THEN ENDIF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nesting-IF-THEN-ENDIF/m-p/326585#M120228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well so really they are not "nested".&amp;nbsp; A nested IF statement would exist completely inside another.&amp;nbsp; But the approachg you suggested does solve my problem.&amp;nbsp; Thanks for the assist!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2012 23:43:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-28T23:43:15Z</dc:date>
    <item>
      <title>Nesting IF THEN ENDIF</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-IF-THEN-ENDIF/m-p/326583#M120226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to nest IF THEN ENDIF statements?&amp;nbsp; I am having an issue doing it in my app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF condition1 THEN&lt;/P&gt;&lt;P&gt;IF condition2 THEN &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do something&lt;/P&gt;&lt;P&gt;ENDIF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this should end condition 2 becasue it is nested.&lt;/P&gt;&lt;P&gt;ENDIF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this should end condition 1 because it is the outside set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to create an issue when condition 1 is not met due to an extra ENDIF it can't handle.&amp;nbsp; This leads me to believe it is using the first ENDIF statement rather than the second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody have ideas on getting this to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 19:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-IF-THEN-ENDIF/m-p/326583#M120226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-28T19:32:49Z</dc:date>
    </item>
    <item>
      <title>Nesting IF THEN ENDIF</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-IF-THEN-ENDIF/m-p/326584#M120227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup nesting IFs is certainly possible. You could try using and AND to combine the IFs together like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Field1='ABC' AND Field2=25 THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 19:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-IF-THEN-ENDIF/m-p/326584#M120227</guid>
      <dc:creator />
      <dc:date>2012-02-28T19:40:24Z</dc:date>
    </item>
    <item>
      <title>Nesting IF THEN ENDIF</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-IF-THEN-ENDIF/m-p/326585#M120228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well so really they are not "nested".&amp;nbsp; A nested IF statement would exist completely inside another.&amp;nbsp; But the approachg you suggested does solve my problem.&amp;nbsp; Thanks for the assist!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 23:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-IF-THEN-ENDIF/m-p/326585#M120228</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-28T23:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting IF THEN ENDIF</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-IF-THEN-ENDIF/m-p/326586#M120229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, using the AND isn't really a nested IF. But true nested IFs should work perfectly and I've done so more times than I can count. No idea why they aren't working for you. I just rand this and it worked as expected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF 1=1 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF 1=1 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace hello world;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of interest, try changing ENDIF for END IF (with a space) as I normally use the latter and it wouldn't be the first time I've seen a strange bug like that in QV. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 23:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-IF-THEN-ENDIF/m-p/326586#M120229</guid>
      <dc:creator />
      <dc:date>2012-02-28T23:54:23Z</dc:date>
    </item>
  </channel>
</rss>

