<?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: How to write IF statement in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484794#M1145819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script is not correct in QlikView. Now let try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Data]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;If(Currency='USD',Sale*Exchange,Sale)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As [Sale],&lt;/P&gt;&lt;P&gt;...&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>Tue, 16 Jul 2013 10:27:19 GMT</pubDate>
    <dc:creator>Sokkorn</dc:creator>
    <dc:date>2013-07-16T10:27:19Z</dc:date>
    <item>
      <title>How to write IF statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484793#M1145818</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;Can anyone help me how to write if statement in load script. I try below script and get error.&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Currency='USD' then &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sale*Exchange&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else Sale&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;End If as Sale,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484793#M1145818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-16T10:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write IF statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484794#M1145819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script is not correct in QlikView. Now let try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Data]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;If(Currency='USD',Sale*Exchange,Sale)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As [Sale],&lt;/P&gt;&lt;P&gt;...&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>Tue, 16 Jul 2013 10:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484794#M1145819</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-07-16T10:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to write IF statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484795#M1145820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sokkorn, it work!!!. Can you help to explain me on your statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484795#M1145820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-16T10:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to write IF statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484796#M1145821</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;If(Condition, then, else) &lt;/P&gt;&lt;P&gt;The three parameters condition, then and else are all expressions. The first one, condition, is interpreted logically. The two other ones, then and else, can be of any type. They should preferably be of the same type. If condition is true, the function returns the value of the expression then. If condition is false, the function returns the value of the expression else. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;If(Amount&amp;gt;= 0,'OK','Alarm')&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>Tue, 16 Jul 2013 10:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484796#M1145821</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-07-16T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write IF statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484797#M1145822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;If(Currency='USD',Sale*Exchange,Sale)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As [Sale]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Source table....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484797#M1145822</guid>
      <dc:creator />
      <dc:date>2013-07-16T10:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to write IF statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484798#M1145823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks bika_2010&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484798#M1145823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-16T10:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to write IF statement in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484799#M1145824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sokkorn. Very nice &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-IF-statement-in-load-script/m-p/484799#M1145824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-16T10:35:43Z</dc:date>
    </item>
  </channel>
</rss>

