<?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: mystery if then else error in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556333#M689469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well...&lt;/P&gt;&lt;P&gt;Maybe because Oct 31 is coming &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Oct 2013 19:21:00 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2013-10-14T19:21:00Z</dc:date>
    <item>
      <title>mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556324#M689455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble with if/then/else in a script. I had this working in a different document, but I get script errors now. The exact script below throws the error. If I comment out the If/Endif statement, it runs fine. What am I missing (I know it's something painfully obvious, but I've been searching Google and the forums for ~60 mins with no luck).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I solve the "outer" if/then, I need to work on the inner if/then, but one thing at a time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ifscripterror.gif" class="jive-image" src="https://community.qlik.com/legacyfs/online/47593_ifscripterror.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 18:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556324#M689455</guid>
      <dc:creator />
      <dc:date>2013-10-14T18:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556325#M689456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any &lt;/P&gt;&lt;P&gt;LET vCount&lt;/P&gt;&lt;P&gt;BEFORE the for "loop"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 18:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556325#M689456</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-14T18:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556326#M689457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I LET vCount = 0; before the loop. This was working in the other document I created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 18:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556326#M689457</guid>
      <dc:creator />
      <dc:date>2013-10-14T18:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556327#M689458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the exact error message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 18:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556327#M689458</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-14T18:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556328#M689459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you defined the variable for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vTargetOut&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it looking in the correct directory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 18:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556328#M689459</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-10-14T18:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556329#M689460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know everything is working apart from the if/then because everything works properly when I comment out the if/then (see below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="noifnoerror.gif" class="jive-image" src="https://community.qlik.com/legacyfs/online/47600_noifnoerror.gif" /&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 18:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556329#M689460</guid>
      <dc:creator />
      <dc:date>2013-10-14T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556330#M689463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somehting's wrong with vCount...&amp;nbsp; What the error is?&lt;/P&gt;&lt;P&gt;Try to run in the debug mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 19:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556330#M689463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-14T19:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556331#M689467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well.... the error &lt;EM&gt;was&lt;/EM&gt; "Script Error: ENDIF". After several iterations of commenting and uncommenting pieces of the if clause, the script now works. I didn't make any changes to the code itself. This is weird. Here's the working code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="nowitworks.gif" class="jive-image" src="https://community.qlik.com/legacyfs/online/47601_nowitworks.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'll chalk this up to gremlins and proceed with fingers crossed. Thank you for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 19:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556331#M689467</guid>
      <dc:creator />
      <dc:date>2013-10-14T19:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556332#M689468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well... as mentioned above, this is now mysteriously working with no code changes. I have no idea what happened!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="nowitworks.gif" class="jive-image" src="https://community.qlik.com/legacyfs/online/47602_nowitworks.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help, though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 19:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556332#M689468</guid>
      <dc:creator />
      <dc:date>2013-10-14T19:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556333#M689469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well...&lt;/P&gt;&lt;P&gt;Maybe because Oct 31 is coming &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 19:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556333#M689469</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-14T19:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: mystery if then else error in script</title>
      <link>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556334#M689470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well..... I continued having script gremlins. The debugger and the "normal" reload would intermittently throw "script error: endif" errors. I eventually made this go away by changing to a switch on a boolean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="solved.gif" class="jive-image" src="https://community.qlik.com/legacyfs/online/47741_solved.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the compiler must do some crazy partial evaluation behind the scenes... hence the sporadic errors with the prior syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 15:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mystery-if-then-else-error-in-script/m-p/556334#M689470</guid>
      <dc:creator />
      <dc:date>2013-10-16T15:10:54Z</dc:date>
    </item>
  </channel>
</rss>

