<?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: Comparing a variable with a string seems not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-a-variable-with-a-string-seems-not-working/m-p/1175512#M892269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But using $(Var)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(Var) = 'A'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(Var) = 'B'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(Var) = 'C'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Anyway correct answer for you&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 17:28:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-11T17:28:12Z</dc:date>
    <item>
      <title>Comparing a variable with a string seems not working</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-a-variable-with-a-string-seems-not-working/m-p/1175510#M892267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I three buttons that each one sets the same variable through an action. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;button A -&amp;gt; sets Var = 'A'&lt;/P&gt;&lt;P&gt;button B -&amp;gt; sets Var = 'B'&lt;/P&gt;&lt;P&gt;button C -&amp;gt; sets Var = 'C'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I have three containers, which they are visible depending on Var value, for example, I set the condition for each one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;container A -&amp;gt; =if(&lt;SPAN style="font-size: 13.3333px;"&gt;Var &lt;/SPAN&gt;= 'A',1,0)&amp;nbsp;&amp;nbsp; // it means, if var='A' then container A is visible, otherwise container A is hidden&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;container B -&amp;gt; =if(&lt;SPAN style="font-size: 13.3333px;"&gt;Var &lt;/SPAN&gt;= 'B',1,0)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;container C -&amp;gt; =if(&lt;SPAN style="font-size: 13.3333px;"&gt;Var &lt;/SPAN&gt;= 'C',1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If I click on button A for example, container A should be visible, but containers B and C hidden&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If I click on button B for example, container A should be visible, but containers A and C hidden&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If I click on button C for example, container A should be visible, but containers A and B hidden&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Variable Var is correctly set on each button click with the correct value but the problem is:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If container B is hidden and I click on button B, then container B remains hidden and it should be visible. It seems like condition set in container always execute the 'else' part of the if statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any ideas?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-a-variable-with-a-string-seems-not-working/m-p/1175510#M892267</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a variable with a string seems not working</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-a-variable-with-a-string-seems-not-working/m-p/1175511#M892268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Var = 'A'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Var = 'B'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Var = 'C'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No need to add the if statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-a-variable-with-a-string-seems-not-working/m-p/1175511#M892268</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-11T17:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a variable with a string seems not working</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-a-variable-with-a-string-seems-not-working/m-p/1175512#M892269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But using $(Var)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(Var) = 'A'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(Var) = 'B'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(Var) = 'C'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Anyway correct answer for you&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-a-variable-with-a-string-seems-not-working/m-p/1175512#M892269</guid>
      <dc:creator />
      <dc:date>2016-08-11T17:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a variable with a string seems not working</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-a-variable-with-a-string-seems-not-working/m-p/1175513#M892270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post a small sample app...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-a-variable-with-a-string-seems-not-working/m-p/1175513#M892270</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-08-11T17:33:21Z</dc:date>
    </item>
  </channel>
</rss>

