<?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: comparison operator in if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576223#M478505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then the answer of whiteline must do the trick, I think.&lt;/P&gt;&lt;P&gt;In my reply I forgot a ')'. it must be like:&lt;/P&gt;&lt;P&gt;If ($(vSet) = 0, if (volumn &amp;lt;10, dosth, dosthelse), if ($(vSet) =1, if (volumn&amp;gt; 10, dosth, dosthelse)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 12:04:45 GMT</pubDate>
    <dc:creator>cgdonders</dc:creator>
    <dc:date>2014-03-14T12:04:45Z</dc:date>
    <item>
      <title>comparison operator in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576217#M478499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the expression or script, I want to add logic,&amp;nbsp; volumn ("greater" or "less" depends on the vSet boolean value) than 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(volumn"????"10, dosth, dosthelse)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how to write the "????" part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be something like.&amp;nbsp; if(greater=1,&amp;gt;,&amp;lt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;if(volumn&amp;amp;if(greater=1,'&amp;gt;','&amp;lt;')&amp;amp;10, dosth, dosthelse), but it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576217#M478499</guid>
      <dc:creator />
      <dc:date>2014-03-14T11:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: comparison operator in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576218#M478500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, not sure what you ar trying to achieve, but you can use if like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Volume &amp;gt; 1 OR Volume &amp;lt; -1, Expression, ElseExpression)&lt;/P&gt;&lt;P&gt;If(Volume &amp;gt;1 AND Volume &amp;lt;10, Expression, ElseExpression)&lt;/P&gt;&lt;P&gt;If(Volume = 1, Expression, ElseExpression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576218#M478500</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-03-14T11:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: comparison operator in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576219#M478501</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;LET vSet = '&amp;gt;';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(volumn$(vSet)10, dosth, dosthelse)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576219#M478501</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-03-14T11:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: comparison operator in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576220#M478502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;If (vSet = 0, if (volumn &amp;lt;10, dosth, dosthelse), if (vSet =1, if (volumn&amp;gt; 10, dosth, dosthelse))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576220#M478502</guid>
      <dc:creator>cgdonders</dc:creator>
      <dc:date>2014-03-14T11:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: comparison operator in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576221#M478503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the logic I want, but would be much better if I can change comparison operator within a if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(volumn$(=if(greater=1,'&amp;gt;','&amp;lt;'))10, dosth, dosthelse)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576221#M478503</guid>
      <dc:creator />
      <dc:date>2014-03-14T11:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: comparison operator in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576222#M478504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This syntax does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576222#M478504</guid>
      <dc:creator />
      <dc:date>2014-03-14T11:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: comparison operator in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576223#M478505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then the answer of whiteline must do the trick, I think.&lt;/P&gt;&lt;P&gt;In my reply I forgot a ')'. it must be like:&lt;/P&gt;&lt;P&gt;If ($(vSet) = 0, if (volumn &amp;lt;10, dosth, dosthelse), if ($(vSet) =1, if (volumn&amp;gt; 10, dosth, dosthelse)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 12:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparison-operator-in-if-statement/m-p/576223#M478505</guid>
      <dc:creator>cgdonders</dc:creator>
      <dc:date>2014-03-14T12:04:45Z</dc:date>
    </item>
  </channel>
</rss>

