<?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: problem with if in scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605203#M682566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi flipside, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to run several if conditions depending of a bigger condition (vAction) something like a case statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simplifying the question...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how i could do a case statement in Qlikview? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 15:50:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-05T15:50:47Z</dc:date>
    <item>
      <title>problem with if in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605198#M682559</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 structure in my qvd generator qvw file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vAction=0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;if vAction=-1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let's will said that vAction=-1, it should jump to the second condition but i don't know why it's continuing in the else inside the false condition (3rd line in example structure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've checked the code and the structure a lot of times but i cant find why it happening this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what could be the problem??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605198#M682559</guid>
      <dc:creator />
      <dc:date>2014-03-05T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem with if in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605199#M682560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;if vAction -=1 then&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605199#M682560</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-05T15:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with if in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605200#M682562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manish i'm using it already,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605200#M682562</guid>
      <dc:creator />
      <dc:date>2014-03-05T15:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with if in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605201#M682563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you have is two completely separate Nested If statements, so it is working correctly. Your line three is running when Lines 1 and 2 have evaluated false and because it is an else statement runs for any value not already caught by lines 1 and 2. Depending on what you need to do, you need to re-structure your statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605201#M682563</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2014-03-05T15:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem with if in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605202#M682565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure about the value of vAction ? You can nest several &lt;STRONG&gt;if&lt;/STRONG&gt; statements without any problem.&lt;/P&gt;&lt;P&gt;Did you trace it through the debugger ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605202#M682565</guid>
      <dc:creator />
      <dc:date>2014-03-05T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem with if in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605203#M682566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi flipside, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to run several if conditions depending of a bigger condition (vAction) something like a case statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simplifying the question...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how i could do a case statement in Qlikview? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605203#M682566</guid>
      <dc:creator />
      <dc:date>2014-03-05T15:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem with if in scripting</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605204#M682568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;switch vAction&lt;/P&gt;&lt;P&gt;case 1&lt;/P&gt;&lt;P&gt;script&lt;/P&gt;&lt;P&gt;case -1&lt;/P&gt;&lt;P&gt;script&lt;/P&gt;&lt;P&gt;default&lt;/P&gt;&lt;P&gt;script&lt;/P&gt;&lt;P&gt;end switch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-if-in-scripting/m-p/605204#M682568</guid>
      <dc:creator />
      <dc:date>2014-03-05T15:55:55Z</dc:date>
    </item>
  </channel>
</rss>

