<?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 if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/330359#M1175164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; can any one tell me what is that mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i used that in combo chart to create a cricket score card.&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #333333; font-size: 14pt; text-decoration: underline;"&gt;&lt;STRONG&gt;if(wicket=1,[run]);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 05:11:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-31T05:11:12Z</dc:date>
    <item>
      <title>if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/330359#M1175164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; can any one tell me what is that mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i used that in combo chart to create a cricket score card.&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #333333; font-size: 14pt; text-decoration: underline;"&gt;&lt;STRONG&gt;if(wicket=1,[run]);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 05:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/330359#M1175164</guid>
      <dc:creator />
      <dc:date>2012-05-31T05:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/330360#M1175165</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;&lt;EM style="color: #333333; font-size: 14pt; text-decoration: underline;"&gt;&lt;STRONG&gt;==&amp;gt; if(wicket=1,[run]);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mean that&lt;/P&gt;&lt;P&gt;IF wicket=1 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [run]&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor404"&gt;&lt;/A&gt;&lt;A name="if"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;************* QlikView Help ****************&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;if(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;condition , then , else&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;The three parameters &lt;SPAN class="Italic"&gt;condition&lt;/SPAN&gt;, &lt;SPAN class="Italic"&gt;then&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;else&lt;/SPAN&gt; are all expressions. The first one, &lt;SPAN class="Italic"&gt;condition&lt;/SPAN&gt;, is interpreted logically. The two other ones, &lt;SPAN class="Italic"&gt;then&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;else&lt;/SPAN&gt;, can be of any type. They should preferably be of the same type. If &lt;SPAN class="Italic"&gt;condition&lt;/SPAN&gt; is true, the function returns the value of the expression &lt;SPAN class="Italic"&gt;then&lt;/SPAN&gt;. If &lt;SPAN class="Italic"&gt;condition&lt;/SPAN&gt; is false, the function returns the value of the expression &lt;SPAN class="Italic"&gt;else&lt;/SPAN&gt;. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;if( Amount&amp;gt;= 0, 'OK', 'Alarm' )&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 06:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/330360#M1175165</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2012-05-31T06:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/330361#M1175166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression "if(wicket=1,[run])" is not a statement - it is a function. Hence, if the condition (wicket=1) is evaluated as true, then the function returns the field value of [run], else it returns NULL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Optionally, you can use a third parameter also, to define what the function should return in the "else" case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also an IF statement in QlikView that can be used a s control statement:&lt;/P&gt;&lt;P&gt;IF &amp;lt;condition&amp;gt; THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;statement&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this is used "outside" the Load statement, whereas the if-function is used "inside" the Load statement. (Or whenever you have an expression that needs the if to return a value.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 08:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/330361#M1175166</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-05-31T08:04:07Z</dc:date>
    </item>
  </channel>
</rss>

