<?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: Newbie if question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Newbie-if-question/m-p/350942#M1170424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gerrit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also use mixmatch. below is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(MixMatch([&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Location Code&lt;/SPAN&gt;],'RED','BLUE')&amp;gt;0,COLORED,[LOCATION CODE]) as Location,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Jul 2012 05:11:34 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2012-07-15T05:11:34Z</dc:date>
    <item>
      <title>Newbie if question</title>
      <link>https://community.qlik.com/t5/QlikView/Newbie-if-question/m-p/350941#M1170423</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;As part of a script I have the following lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Location Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ("Location Code" = 'RED' or "Location Code" ='BLUE', 'COLORED', "Location Code" ) As Location,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statements are OK and work fine.&lt;/P&gt;&lt;P&gt;But what if I had a number of colors, do I all need to write them out with the 'or' statement or is there a more simple way to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2012 22:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Newbie-if-question/m-p/350941#M1170423</guid>
      <dc:creator />
      <dc:date>2012-07-14T22:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie if question</title>
      <link>https://community.qlik.com/t5/QlikView/Newbie-if-question/m-p/350942#M1170424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gerrit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also use mixmatch. below is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(MixMatch([&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Location Code&lt;/SPAN&gt;],'RED','BLUE')&amp;gt;0,COLORED,[LOCATION CODE]) as Location,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2012 05:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Newbie-if-question/m-p/350942#M1170424</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-07-15T05:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie if question</title>
      <link>https://community.qlik.com/t5/QlikView/Newbie-if-question/m-p/350943#M1170425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your helpful reply. After your reply and with the help of the reference manual I figured out that in my script 'wildmatch' probably is the shortest way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See 1. original script, 2. script as you suggested and 3. final solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. IF ("Location Code" = 'COR-RETOUR' or "Location Code" ='COR AANTAL', 'HEDEL', "Location Code" ) As Vestiging,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if(MixMatch([Location Code],'COR-RETOUR','COR AANTAL')&amp;gt;0,'HEDEL',[Location Code]) as Vestiging,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. if(wildmatch([Location Code],'COR*')&amp;gt;0,'HEDEL',[Location Code]) as Vestiging,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2012 19:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Newbie-if-question/m-p/350943#M1170425</guid>
      <dc:creator />
      <dc:date>2012-07-15T19:25:48Z</dc:date>
    </item>
  </channel>
</rss>

