<?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: First half of nested if statements being ignored in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-half-of-nested-if-statements-being-ignored-in-load-script/m-p/1718022#M724470</link>
    <description>&lt;P&gt;Solved&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;LOAD *,
if(DirectionPre = 'L',

if(HomeAway = 'H', 'LR',
if(HomeAway = 'A', 'RL')),

if(DirectionPre = 'R',

if(HomeAway = 'H', 'RL',
if(HomeAway = 'A', 'LR')

  )))
		
		as Directionpre2;&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 11 Jun 2020 17:23:02 GMT</pubDate>
    <dc:creator>AyCe1082</dc:creator>
    <dc:date>2020-06-11T17:23:02Z</dc:date>
    <item>
      <title>First half of nested if statements being ignored in load script</title>
      <link>https://community.qlik.com/t5/QlikView/First-half-of-nested-if-statements-being-ignored-in-load-script/m-p/1717982#M724469</link>
      <description>&lt;P&gt;Hi, I am trying to use some if statements in a preceding load but only the second half is working, the first half just renders null.&lt;/P&gt;&lt;P&gt;I have tried with and without wrapping in the top if( but always the same result. I also tried doing the two halves separately and appending the second one to the first but that didn't work either.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;LOAD *,
if(
		if(DirectionPre = 'L' and HomeAway = 'H', 'LR'), 
		if(DirectionPre = 'R' and HomeAway = 'H', 'RL')
	,
		if(DirectionPre = 'L' and HomeAway = 'A', 'RL', 
		if(DirectionPre = 'R' and HomeAway = 'A', 'LR'))
  ) 
		
		as Directionpre2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-half-of-nested-if-statements-being-ignored-in-load-script/m-p/1717982#M724469</guid>
      <dc:creator>AyCe1082</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: First half of nested if statements being ignored in load script</title>
      <link>https://community.qlik.com/t5/QlikView/First-half-of-nested-if-statements-being-ignored-in-load-script/m-p/1718022#M724470</link>
      <description>&lt;P&gt;Solved&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;LOAD *,
if(DirectionPre = 'L',

if(HomeAway = 'H', 'LR',
if(HomeAway = 'A', 'RL')),

if(DirectionPre = 'R',

if(HomeAway = 'H', 'RL',
if(HomeAway = 'A', 'LR')

  )))
		
		as Directionpre2;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Jun 2020 17:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-half-of-nested-if-statements-being-ignored-in-load-script/m-p/1718022#M724470</guid>
      <dc:creator>AyCe1082</dc:creator>
      <dc:date>2020-06-11T17:23:02Z</dc:date>
    </item>
  </channel>
</rss>

