<?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: Loop inside IFcondition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-inside-IFcondition/m-p/1327246#M836230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not, Something like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Region = 'Andhra Pradesh', If(Sales &amp;gt; 30, 'Lowest Price', 'Highest Price'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 09:31:43 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-05-24T09:31:43Z</dc:date>
    <item>
      <title>Loop inside IFcondition</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-inside-IFcondition/m-p/1327244#M836228</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;please confirm if we can make loops under If condition&lt;/P&gt;&lt;P&gt; If(Condition, Loop1 ,Loop2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be good if you can explain with an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-inside-IFcondition/m-p/1327244#M836228</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loop inside IFcondition</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-inside-IFcondition/m-p/1327245#M836229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the script: yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Condition THEN&lt;/P&gt;&lt;P&gt;Loop1&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;Loop2&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 09:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-inside-IFcondition/m-p/1327245#M836229</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-05-24T09:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loop inside IFcondition</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-inside-IFcondition/m-p/1327246#M836230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not, Something like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Region = 'Andhra Pradesh', If(Sales &amp;gt; 30, 'Lowest Price', 'Highest Price'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 09:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-inside-IFcondition/m-p/1327246#M836230</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-24T09:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loop inside IFcondition</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-inside-IFcondition/m-p/1327247#M836231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, no. In QlikView script, there are two IFs: there is an IF()&lt;EM&gt; function&lt;/EM&gt; that can be used in expressions, and there is an IF control statement that can be used in blocks of code. They look alike and may give you the impression that they do similar things. But they're to be used in different contexts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An IF() function cannot contain loops (except if you consider the two-parameter SubField() function a "loop") because loops (like DO UNTIL/WHILE or FOR) are also control statements. And an IF (... THEN ... ELSE ... END IF) control statement can't be used inside expressions. That's how it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Edit] The one in your OP is the &lt;EM&gt;function&lt;/EM&gt;-version of course.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 09:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-inside-IFcondition/m-p/1327247#M836231</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-24T09:41:28Z</dc:date>
    </item>
  </channel>
</rss>

