<?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: Nested if Script Syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-if-Script-Syntax/m-p/515509#M192493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is a flag that by default is 0, or Null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 19:54:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-23T19:54:26Z</dc:date>
    <item>
      <title>Nested if Script Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-Script-Syntax/m-p/515507#M192491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i would like to run the following script in the backend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my purpose is to merge the two statements into one field. However my syntax seems to be wrong.&lt;/P&gt;&lt;P&gt;both statements work perfectly fine by themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(Orderkund))=9 and isnum(left(trim(Orderkund),4)) and isnum(right(trim(Orderkund),4)),left(Orderkund,4) &amp;amp; '-0000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Giltig_flagga" = 0, (left("Text 1",9))) as EndCustomer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 19:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-Script-Syntax/m-p/515507#M192491</guid>
      <dc:creator />
      <dc:date>2013-10-23T19:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if Script Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-Script-Syntax/m-p/515508#M192492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don´t see how &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"Giltig_flagga" = 0&lt;/SPAN&gt; can be true, you´re comparing&amp;nbsp; a string to 0, is that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 19:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-Script-Syntax/m-p/515508#M192492</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-23T19:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if Script Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-Script-Syntax/m-p/515509#M192493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is a flag that by default is 0, or Null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 19:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-Script-Syntax/m-p/515509#M192493</guid>
      <dc:creator />
      <dc:date>2013-10-23T19:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if Script Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-Script-Syntax/m-p/515510#M192494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if(len(trim(Orderkund))=9 and isnum(left(trim(Orderkund),4)) and isnum(right(trim(Orderkund),4)),left(Orderkund,4) &amp;amp; '-0000' or&amp;nbsp; Giltig_flagga = 0, (left('Text 1',9)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works here, note that I´m using single quote at 'Text 1' and no quotes at Giltig_flagga &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 19:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-Script-Syntax/m-p/515510#M192494</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-23T19:58:13Z</dc:date>
    </item>
  </channel>
</rss>

