<?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 condition on load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-on-load-script/m-p/639463#M234423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following if condition on my load script and it appears that part of it may not be working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Res ID],'100529','400068','104198','609022') or [Res Direct ID]='CTL01' and [Disti LOB]=39,'ABC', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'100529','400068','104198','609022') or [Res Direct ID]='CTL01' and [Disti LOB]&amp;lt;&amp;gt;39,'ABC thru POS',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'100522','603207','608094') or [Res Direct ID]='VRZ01' and [Disti LOB]=39,'DEF',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'100522','603207','608094') or [Res Direct ID]='VRZ01' and [Disti LOB]&amp;lt;&amp;gt;39,'DEF thru POS',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'102786','104805','608095', '609482') or [Res Direct ID]='ATT01' and [Disti LOB]=39,'HIJ', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'102786','104805','608095', '609482') or [Res Direct ID]='ATT01' and [Disti LOB]&amp;lt;&amp;gt;39,'HIJ thru POS','Other')))))) as [Domestic Tier 1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The items listed with 'thru POS' don't seem to be picking up correctly.&amp;nbsp; Does the &amp;lt;&amp;gt; seem to be the issue?????&lt;/P&gt;&lt;P&gt;Any suggestions????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2014 14:15:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-04T14:15:46Z</dc:date>
    <item>
      <title>If condition on load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-on-load-script/m-p/639463#M234423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following if condition on my load script and it appears that part of it may not be working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Res ID],'100529','400068','104198','609022') or [Res Direct ID]='CTL01' and [Disti LOB]=39,'ABC', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'100529','400068','104198','609022') or [Res Direct ID]='CTL01' and [Disti LOB]&amp;lt;&amp;gt;39,'ABC thru POS',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'100522','603207','608094') or [Res Direct ID]='VRZ01' and [Disti LOB]=39,'DEF',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'100522','603207','608094') or [Res Direct ID]='VRZ01' and [Disti LOB]&amp;lt;&amp;gt;39,'DEF thru POS',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'102786','104805','608095', '609482') or [Res Direct ID]='ATT01' and [Disti LOB]=39,'HIJ', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Match([Res ID],'102786','104805','608095', '609482') or [Res Direct ID]='ATT01' and [Disti LOB]&amp;lt;&amp;gt;39,'HIJ thru POS','Other')))))) as [Domestic Tier 1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The items listed with 'thru POS' don't seem to be picking up correctly.&amp;nbsp; Does the &amp;lt;&amp;gt; seem to be the issue?????&lt;/P&gt;&lt;P&gt;Any suggestions????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 14:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-on-load-script/m-p/639463#M234423</guid>
      <dc:creator />
      <dc:date>2014-06-04T14:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: If condition on load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-on-load-script/m-p/639464#M234424</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;Might be better to use "" when there are blanks but&lt;/P&gt;&lt;P&gt;i suggest you make it lighter using applymap &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;build a oad inline mapping table with your codes and just test &lt;/P&gt;&lt;P&gt; applymap(''Map_table', [Res ID], &amp;amp; [Res Direct ID] &amp;amp; [Disti LOB])&amp;nbsp; as&amp;nbsp; [Domestic Tier 1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 14:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-on-load-script/m-p/639464#M234424</guid>
      <dc:creator />
      <dc:date>2014-06-04T14:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: If condition on load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-on-load-script/m-p/639465#M234425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &amp;lt;&amp;gt; operator should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would use brackets to be sure that the precedence between AND and OR works the way you want. I.e. not&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Match([Res ID],'100529','400068','104198','609022') or [Res Direct ID]='CTL01' and [Disti LOB]=39&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;but instead&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Match([Res ID],'100529','400068','104198','609022') or [Res Direct ID]='CTL01' ) and [Disti LOB]=39&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 14:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-on-load-script/m-p/639465#M234425</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-06-04T14:27:53Z</dc:date>
    </item>
  </channel>
</rss>

