<?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: If condation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condation/m-p/852838#M996239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;If Conditional Function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Syntax for using If condition in presentation layer expression definition or checking condition in a load statement is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Condition, then, else)&lt;/P&gt;&lt;P&gt;Eg;&lt;/P&gt;&lt;P&gt;If(BankBalance&amp;gt;5000,'OK','Fund your account')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If conditions can be nested as follows&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;If(Condition, then, if(Condition, then, if(Condition, then)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If else is not specified, QlikView will return NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;If..then control statement&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This forces QlikView to execute different script statements depending on one or more logical conditions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Syntax:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;If &lt;/STRONG&gt;condition &lt;STRONG&gt;then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;statements&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;elseif &lt;/STRONG&gt;&lt;EM&gt;condition &lt;/EM&gt;&lt;STRONG&gt;then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;statements&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;statements&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;​endif&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here, elseif and else are optional. Please refer QlikView desktop help for more details and examples.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KKR&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 17:52:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-30T17:52:40Z</dc:date>
    <item>
      <title>If condation</title>
      <link>https://community.qlik.com/t5/QlikView/If-condation/m-p/852834#M996235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write&amp;nbsp;&amp;nbsp; IF CONDITION in script level ? with example ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 15:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condation/m-p/852834#M996235</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2015-06-30T15:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: If condation</title>
      <link>https://community.qlik.com/t5/QlikView/If-condation/m-p/852835#M996236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF(Country = 'A', 'Something', Country) as Country&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Marks &amp;lt; 40,'Fail',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Marks &amp;gt;= 40 and Marks &amp;lt; 50,'Pass',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Marks &amp;gt;= 50 and Marks &amp;lt; 60,'Second',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&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; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Marks &amp;gt;= 60,'First')))) as Grade&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 15:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condation/m-p/852835#M996236</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-06-30T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: If condation</title>
      <link>https://community.qlik.com/t5/QlikView/If-condation/m-p/852836#M996237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;In the script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Condition&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ....&lt;BR /&gt; Else&lt;BR /&gt; ...&lt;BR /&gt; ENDIF&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;In a load:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If(cond, true, false) as alia&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 15:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condation/m-p/852836#M996237</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-30T15:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: If condation</title>
      <link>https://community.qlik.com/t5/QlikView/If-condation/m-p/852837#M996238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax for the If function is standardised in script and Expression level.&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; If( &amp;lt;Condition&amp;gt; , &amp;lt; Yes- Condition fulfilled&amp;gt; , &amp;lt;No- Condition not Fulfilled&amp;gt;)&lt;/P&gt;&lt;P&gt;The 'Yes' and 'No' parts can be further nested with If Conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. If ( 1=1, 'Yes' , 'No')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 15:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condation/m-p/852837#M996238</guid>
      <dc:creator />
      <dc:date>2015-06-30T15:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: If condation</title>
      <link>https://community.qlik.com/t5/QlikView/If-condation/m-p/852838#M996239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;If Conditional Function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Syntax for using If condition in presentation layer expression definition or checking condition in a load statement is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Condition, then, else)&lt;/P&gt;&lt;P&gt;Eg;&lt;/P&gt;&lt;P&gt;If(BankBalance&amp;gt;5000,'OK','Fund your account')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If conditions can be nested as follows&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;If(Condition, then, if(Condition, then, if(Condition, then)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If else is not specified, QlikView will return NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;If..then control statement&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This forces QlikView to execute different script statements depending on one or more logical conditions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Syntax:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;If &lt;/STRONG&gt;condition &lt;STRONG&gt;then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;statements&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;elseif &lt;/STRONG&gt;&lt;EM&gt;condition &lt;/EM&gt;&lt;STRONG&gt;then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;statements&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;statements&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;​endif&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here, elseif and else are optional. Please refer QlikView desktop help for more details and examples.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KKR&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 17:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condation/m-p/852838#M996239</guid>
      <dc:creator />
      <dc:date>2015-06-30T17:52:40Z</dc:date>
    </item>
  </channel>
</rss>

