<?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: How to write multiple if conditions in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-multiple-if-conditions-in-script/m-p/1589913#M738298</link>
    <description>try below&lt;BR /&gt;&lt;BR /&gt;if(status='rejected',&lt;BR /&gt;if((Rejected_Rsn='id submitted with error' and wildmatch(Comment ,'*Invalid*','*rejected*')) or (Rejected_Rsn='Not to Fix' and wildmatch(Comment ,'*valid*','*Closed*','*Not to Fix*')),'Incorrect Value','Ignore'))&lt;BR /&gt;as Flag1&lt;BR /&gt;&lt;BR /&gt;Note : Please check with closing bracktes.&lt;BR /&gt;&lt;BR /&gt;If above solution won't work, then share your logic in simple words.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prashant Sangle</description>
    <pubDate>Mon, 10 Jun 2019 09:30:44 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2019-06-10T09:30:44Z</dc:date>
    <item>
      <title>How to write multiple if conditions in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-multiple-if-conditions-in-script/m-p/1589902#M738297</link>
      <description>&lt;P&gt;HI Friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I am trying to write multiple if conditions, if i use one condition i am getting value, but when i am using mutiple conditions i am not getting the value. can any one help me on this. i am sharing sample condition how i written. I have columns like&lt;/P&gt;&lt;P&gt;Status, Comment and Rejected_Rsn. By using these columns i need to write conditions.&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;1) if(status='rejected', if(Rejected_Rsn='id submitted with error', if(wildmatch(Comment ,'*Invalid*','*rejected*'),'Incorrect Value','Ignore'))) as Flag1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// when i written above condition like this i am getting value as expected but when i am adding another condition i am not getting any value in Flag&lt;/P&gt;&lt;P&gt;2) if(status='rejected', if(Rejected_Rsn='id submitted with error', if(wildmatch(Comment ,'*Invalid*','*rejected*'),&lt;/P&gt;&lt;P&gt;if(status='rejected', if(Rejected_Rsn='Not to Fix', if(wildmatch(Comment ,'*valid*','*Closed*','*Not to Fix*')&lt;/P&gt;&lt;P&gt;'Incorrect Value','Ignore'&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;P&gt;))) as Flag1&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i was trying second condtion i am not getting values. can any one please help me on this. i have used and/or also i am getting error. Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-multiple-if-conditions-in-script/m-p/1589902#M738297</guid>
      <dc:creator>shabarish0587</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write multiple if conditions in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-multiple-if-conditions-in-script/m-p/1589913#M738298</link>
      <description>try below&lt;BR /&gt;&lt;BR /&gt;if(status='rejected',&lt;BR /&gt;if((Rejected_Rsn='id submitted with error' and wildmatch(Comment ,'*Invalid*','*rejected*')) or (Rejected_Rsn='Not to Fix' and wildmatch(Comment ,'*valid*','*Closed*','*Not to Fix*')),'Incorrect Value','Ignore'))&lt;BR /&gt;as Flag1&lt;BR /&gt;&lt;BR /&gt;Note : Please check with closing bracktes.&lt;BR /&gt;&lt;BR /&gt;If above solution won't work, then share your logic in simple words.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prashant Sangle</description>
      <pubDate>Mon, 10 Jun 2019 09:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-multiple-if-conditions-in-script/m-p/1589913#M738298</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-06-10T09:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write multiple if conditions in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-multiple-if-conditions-in-script/m-p/1589915#M738299</link>
      <description>&lt;P&gt;Your second expression first tests for Rejected_Rsn='id submitted with error' and again tests Rejected_Rsn for another value: Rejected_Rsn='Not to Fix'. Since a field can only contain one value and not two the result is the combination of these tests is always false. That's why you don't get a result.&lt;/P&gt;&lt;P&gt;Try this instead:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(status='rejected'
    , if(Rejected_Rsn='id submitted with error'
        , if(wildmatch(Comment ,'*Invalid*','*rejected*')
            ,'Incorrect Value'
            ,'Ignore'
            )
        , if(Rejected_Rsn='Not to Fix'
            , if(wildmatch(Comment ,'*valid*','*Closed*','*Not to Fix*')
                ,'Incorrect Value'
                ,'Ignore'
                )
            )
        )
  ) as Flag1  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 09:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-multiple-if-conditions-in-script/m-p/1589915#M738299</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-06-10T09:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to write multiple if conditions in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-multiple-if-conditions-in-script/m-p/1590570#M738300</link>
      <description>&lt;P&gt;Thank You Gysbert&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 15:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-multiple-if-conditions-in-script/m-p/1590570#M738300</guid>
      <dc:creator>shabarish0587</dc:creator>
      <dc:date>2019-06-11T15:25:42Z</dc:date>
    </item>
  </channel>
</rss>

