<?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 or statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-or-statement/m-p/492030#M1129535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Jono&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the Match() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 11:07:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-11-26T11:07:47Z</dc:date>
    <item>
      <title>If or statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-or-statement/m-p/492029#M1129534</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;Can someone tell me how to use an If statement with an or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not to familiar with the syntax currently&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to say If Cust = A or B then ..... etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to build the formula etc I just want to know what the cleanest way of using the Or formula is eg would I have to build it in as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(customer = 'A' or customer = 'B', 1,2)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;or is there a cleaner way such as a If(customer = 'A' or 'B', 1,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 11:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-or-statement/m-p/492029#M1129534</guid>
      <dc:creator />
      <dc:date>2013-11-26T11:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: If or statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-or-statement/m-p/492030#M1129535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Jono&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the Match() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 11:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-or-statement/m-p/492030#M1129535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-26T11:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: If or statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-or-statement/m-p/492031#M1129536</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;It seems, your IF syntax is correct. If you want to try bit different then use below expression:&lt;/P&gt;&lt;P&gt;IF(Match(customer, 'A','B') &amp;gt; 0, 1,2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 11:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-or-statement/m-p/492031#M1129536</guid>
      <dc:creator />
      <dc:date>2013-11-26T11:18:12Z</dc:date>
    </item>
  </channel>
</rss>

