<?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: Different between If ... then and When in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-between-If-then-and-When/m-p/1211002#M874236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In first code the table is run and loaded while in the second code it will not run as Gysbert suggest you have to use When with nested if statement.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2016 12:12:09 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2016-11-07T12:12:09Z</dc:date>
    <item>
      <title>Different between If ... then and When</title>
      <link>https://community.qlik.com/t5/QlikView/Different-between-If-then-and-When/m-p/1211000#M874234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me what is the difference between the following scripts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose we have a variable called "A" and is set to = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If A = 1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load * inline{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col A, Col B,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When A := 1 &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; load * inline{&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col A, Col B,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,2,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Would second query be fired automatically if the value of variable "A" changed to something other than 1 and than change back to 1?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks!&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/Different-between-If-then-and-When/m-p/1211000#M874234</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Different between If ... then and When</title>
      <link>https://community.qlik.com/t5/QlikView/Different-between-If-then-and-When/m-p/1211001#M874235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An if statement can have an else branch, a when statement doesn't. With a When there's only one block of code that will or will not be executed. In an If-then-else you can have two alternative blocks of code. See the online help: &lt;A href="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Scripting/ScriptPrefixes/When.htm" title="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Scripting/ScriptPrefixes/When.htm"&gt;When&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 11:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-between-If-then-and-When/m-p/1211001#M874235</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-11-07T11:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Different between If ... then and When</title>
      <link>https://community.qlik.com/t5/QlikView/Different-between-If-then-and-When/m-p/1211002#M874236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In first code the table is run and loaded while in the second code it will not run as Gysbert suggest you have to use When with nested if statement.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-between-If-then-and-When/m-p/1211002#M874236</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2016-11-07T12:12:09Z</dc:date>
    </item>
  </channel>
</rss>

