<?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 Nested IF statement in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-IF-statement-in-script/m-p/672100#M1071210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scripting is not my strong point (not that I'm particularly strong in any one area of QlikView yet!) so hopefully I'm explaining this right.&amp;nbsp; I have 2 QVDs.&amp;nbsp; In A.qvd, I have 2 fields, the first is Serial_Number and the second is Unique_Identifier.&amp;nbsp; I have the same in B.qvd - Serial_Number and Unique_Identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to write a script that says basically see if you can match the serial # in A.qvd to a serial # in B.qvd; if you can't, then try to match Unique Identifier in A.qvd to Unique Identifier in B.qvd; if you can't, then leave it blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I haven't figured out how to successfully write a nested statement correctly for it, and I'm also not sure where exactly to put it in the script.&amp;nbsp; I'm guessing it goes in B.qvd near the bottom after it's read both fields from both QVDs but I'm not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each field contains thousands of unique records, so I need to write something that covers everything without needing to write out individual serial #'s, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 19:50:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-28T19:50:04Z</dc:date>
    <item>
      <title>Nested IF statement in script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-statement-in-script/m-p/672100#M1071210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scripting is not my strong point (not that I'm particularly strong in any one area of QlikView yet!) so hopefully I'm explaining this right.&amp;nbsp; I have 2 QVDs.&amp;nbsp; In A.qvd, I have 2 fields, the first is Serial_Number and the second is Unique_Identifier.&amp;nbsp; I have the same in B.qvd - Serial_Number and Unique_Identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to write a script that says basically see if you can match the serial # in A.qvd to a serial # in B.qvd; if you can't, then try to match Unique Identifier in A.qvd to Unique Identifier in B.qvd; if you can't, then leave it blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I haven't figured out how to successfully write a nested statement correctly for it, and I'm also not sure where exactly to put it in the script.&amp;nbsp; I'm guessing it goes in B.qvd near the bottom after it's read both fields from both QVDs but I'm not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each field contains thousands of unique records, so I need to write something that covers everything without needing to write out individual serial #'s, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 19:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-statement-in-script/m-p/672100#M1071210</guid>
      <dc:creator />
      <dc:date>2014-08-28T19:50:04Z</dc:date>
    </item>
  </channel>
</rss>

