<?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 Problem with if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280367#M1195498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks to both of you for responding!&amp;nbsp; The "Like" word fixed my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nmellick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2011 15:37:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-06T15:37:45Z</dc:date>
    <item>
      <title>Problem with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280364#M1195495</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 am trying to do a nested if.&amp;nbsp; The field I am evaluating can either be a number or text.&amp;nbsp; These are lab results.&amp;nbsp; The text part is when the lab enters a result like - '&amp;gt;15'.&amp;nbsp; If it is this, then I'm trying to put in a "1" into my flag field.&amp;nbsp; The statement is not even recognizing this part of my if statement and I can't figure out why.&amp;nbsp; Here's my statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Event Tag]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;6&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;text&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Event Tag]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'&amp;gt;15*'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;INR_Flag6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;The first part will evaluate correctly, but the second part won't.&amp;nbsp; Any suggestions will be greatly appreciated!&amp;nbsp; I've tried everything I can think of to get this to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;nmellick&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 14:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280364#M1195495</guid>
      <dc:creator />
      <dc:date>2011-05-06T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Problem with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280365#M1195496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I didn't understand what you are trying to accomplish with text([Event Tag]) = '&amp;gt;15*',&lt;/P&gt;&lt;P&gt;maybe you could work with part of the string.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;num( left( [Event Tag],2) )&amp;gt; 15&lt;/P&gt;&lt;P&gt;This gets the two characters on the left, convert it to a number and check if it is higher than 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it not it, please describe your if-condition&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 14:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280365#M1195496</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-06T14:57:17Z</dc:date>
    </item>
    <item>
      <title>Problem with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280366#M1195497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the second 'if' statement, use 'like' operator instead of '='. I tried a sample script and it worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishnamoorthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 15:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280366#M1195497</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-05-06T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Problem with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280367#M1195498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks to both of you for responding!&amp;nbsp; The "Like" word fixed my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nmellick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 15:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280367#M1195498</guid>
      <dc:creator />
      <dc:date>2011-05-06T15:37:45Z</dc:date>
    </item>
    <item>
      <title>Problem with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280368#M1195499</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;if you are struggling with if-statements (like me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;) maybe this can be helpfull:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikblog.at/464/tool-creating-nested-ifstatements/"&gt;http://www.qlikblog.at/464/tool-creating-nested-ifstatements/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 17:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/280368#M1195499</guid>
      <dc:creator>Stefan_Walther</dc:creator>
      <dc:date>2011-05-09T17:50:39Z</dc:date>
    </item>
  </channel>
</rss>

