<?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: Array comparison in if statement not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066503#M356543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I figured it out. It seems the if statement runs out of array members. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2016 17:12:07 GMT</pubDate>
    <dc:creator>sifatnabil</dc:creator>
    <dc:date>2016-01-25T17:12:07Z</dc:date>
    <item>
      <title>Array comparison in if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066499#M356539</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;I have this if statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ElseIf vemail.Item(j).Text &amp;lt;&amp;gt; vemail.Item(j-1).Text Then &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it keeps stopping at this part. Is there something wrong with the syntax?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066499#M356539</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-01-25T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Array comparison in if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066500#M356540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your loop running at least one time - you could check such things with a msgbox on one of the loop-counter, maybe with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox j 'or other counters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be that your counter runs out of the number of array-member.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further is your syntax of querying &lt;STRONG&gt;vemail.Item(j).Text&lt;/STRONG&gt; correct, also here is a msgbox helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var = &lt;STRONG&gt;vemail.Item(j).Text&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;msgbox var&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066500#M356540</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-25T16:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Array comparison in if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066501#M356541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried all those, it's definitely something to do with the comparison of the array, e.g. it errors when using this: &lt;STRONG&gt;vemail.Item(1).Text &amp;lt;&amp;gt; vemail.Item(0).Text &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though vemail does have values in Item(1) and Item(0). Everything else in the loop works. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066501#M356541</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-01-25T17:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Array comparison in if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066502#M356542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh but this works: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;var = &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;vemail.Item(j).Text&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;msgbox var&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So it's strange that a comparison wouldn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066502#M356542</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-01-25T17:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Array comparison in if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066503#M356543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I figured it out. It seems the if statement runs out of array members. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Array-comparison-in-if-statement-not-working/m-p/1066503#M356543</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-01-25T17:12:07Z</dc:date>
    </item>
  </channel>
</rss>

