<?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 What is the syntax for an 'if' statement in a conditional? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267613#M100497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope it helps!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2011 17:38:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-11T17:38:52Z</dc:date>
    <item>
      <title>What is the syntax for an 'if' statement in a conditional?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267612#M100496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text box that I only want displayed if a variable is set to 'SH07'. I attempted this: =if(vReport='SH07',1,-1) but it does not work.&amp;nbsp; No matter what the variable is set to the text box is always displayed.&amp;nbsp; Anyone know the correct syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 17:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267612#M100496</guid>
      <dc:creator />
      <dc:date>2011-08-11T17:30:35Z</dc:date>
    </item>
    <item>
      <title>What is the syntax for an 'if' statement in a conditional?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267613#M100497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope it helps!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 17:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267613#M100497</guid>
      <dc:creator />
      <dc:date>2011-08-11T17:38:52Z</dc:date>
    </item>
    <item>
      <title>What is the syntax for an 'if' statement in a conditional?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267614#M100498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if($(vReport) = 'SH07' , 1,-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it Hepls!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 17:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267614#M100498</guid>
      <dc:creator />
      <dc:date>2011-08-11T17:40:35Z</dc:date>
    </item>
    <item>
      <title>What is the syntax for an 'if' statement in a conditional?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267615#M100499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still no dice unfortunately, seems to always use the 'else'.&amp;nbsp; If I change it to =if($(vReport) = 'SH07',1,0) then it hides if vReport is set to 'SH09' or 'SH07' ... ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 17:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267615#M100499</guid>
      <dc:creator />
      <dc:date>2011-08-11T17:56:45Z</dc:date>
    </item>
    <item>
      <title>What is the syntax for an 'if' statement in a conditional?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267616#M100500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; In the Show Conditional on the Layout tab put&lt;/P&gt;&lt;P&gt;vReport = SH07&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 18:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267616#M100500</guid>
      <dc:creator />
      <dc:date>2011-08-11T18:04:38Z</dc:date>
    </item>
    <item>
      <title>What is the syntax for an 'if' statement in a conditional?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267617#M100501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, works great.&amp;nbsp; I was making it more complicated then it needed to be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 18:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-syntax-for-an-if-statement-in-a-conditional/m-p/267617#M100501</guid>
      <dc:creator />
      <dc:date>2011-08-11T18:08:39Z</dc:date>
    </item>
  </channel>
</rss>

