<?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- else condition in expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-expressions/m-p/491696#M1127633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor406"&gt;&lt;/A&gt;&lt;A name="if"&gt;&lt;/A&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;&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. &lt;BR /&gt;The first one, &lt;SPAN class="Italic"&gt;condition&lt;/SPAN&gt;, is interpreted logically. &lt;BR /&gt;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 &lt;BR /&gt;same type. If &lt;SPAN class="Italic"&gt;condition&lt;/SPAN&gt; is true, the function returns &lt;BR /&gt;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 &lt;BR /&gt;expression &lt;SPAN class="Italic"&gt;else&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;if( Amount&amp;gt;= 0, 'OK', 'Alarm' )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2013 08:05:11 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-12-17T08:05:11Z</dc:date>
    <item>
      <title>If- else condition in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-expressions/m-p/491695#M1127632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;As I am new to qlikview,I want to ask that I want to put condition in expression not in load script.How can I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 07:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-in-expressions/m-p/491695#M1127632</guid>
      <dc:creator>neha_sri</dc:creator>
      <dc:date>2013-12-17T07:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: If- else condition in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-expressions/m-p/491696#M1127633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor406"&gt;&lt;/A&gt;&lt;A name="if"&gt;&lt;/A&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;&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. &lt;BR /&gt;The first one, &lt;SPAN class="Italic"&gt;condition&lt;/SPAN&gt;, is interpreted logically. &lt;BR /&gt;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 &lt;BR /&gt;same type. If &lt;SPAN class="Italic"&gt;condition&lt;/SPAN&gt; is true, the function returns &lt;BR /&gt;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 &lt;BR /&gt;expression &lt;SPAN class="Italic"&gt;else&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;if( Amount&amp;gt;= 0, 'OK', 'Alarm' )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 08:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-in-expressions/m-p/491696#M1127633</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-17T08:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: If- else condition in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-expressions/m-p/491697#M1127634</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple If&lt;/P&gt;&lt;P&gt;=If(Condition1, True Expression, False Expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nested If&lt;/P&gt;&lt;P&gt;=If(Condition1, True Expression1, If(Condition2, True Expression2, False Expression))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 08:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-in-expressions/m-p/491697#M1127634</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-17T08:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: If- else condition in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-in-expressions/m-p/491698#M1127635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a simple if expression as mentioned by jagan in the expression box, if there is any syntax errors the window itself will highlight whether the expression entered is correct or not. If syntax is correct, it will show "Expression OK". You can see this on the top-left of the window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 08:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-in-expressions/m-p/491698#M1127635</guid>
      <dc:creator />
      <dc:date>2013-12-17T08:48:35Z</dc:date>
    </item>
  </channel>
</rss>

