<?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: Checking for NULL in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465368#M697463</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 Len ($(var1)) = 0 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Var2 = 'blue()';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Feb 2013 15:09:40 GMT</pubDate>
    <dc:creator>phaneendra_kunc</dc:creator>
    <dc:date>2013-02-23T15:09:40Z</dc:date>
    <item>
      <title>Checking for NULL in script</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465365#M697460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to check for null values in the script file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable.&lt;/P&gt;&lt;P&gt;var1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to check whether the value of the variable is null or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried&lt;/P&gt;&lt;P&gt;IF( $(var1) = Null&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;set Var2 = Blue();&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is thowing an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naveenchellaaraam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2013 11:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465365#M697460</guid>
      <dc:creator>naveenchellaara</dc:creator>
      <dc:date>2013-02-23T11:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for NULL in script</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465366#M697461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IsNull(X) returns True if X is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Len(Trim(X)) = 0 if X is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/docs/DOC-3155" title="http://community.qlik.com/docs/DOC-3155"&gt;http://community.qlik.com/docs/DOC-3155&lt;/A&gt; has more details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2013 12:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465366#M697461</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2013-02-23T12:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for NULL in script</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465367#M697462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;if(isnull($(var1)),Blue())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial;"&gt;if(len($(var1))=0,Blue())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial;"&gt;if(($(var1))=' ',Blue())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2013 14:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465367#M697462</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2013-02-23T14:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for NULL in script</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465368#M697463</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 Len ($(var1)) = 0 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Var2 = 'blue()';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2013 15:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465368#M697463</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2013-02-23T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for NULL in script</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465369#M697464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the most robust test is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;len('$(v1)') = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the single quotes around the variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2013 17:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-NULL-in-script/m-p/465369#M697464</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-02-23T17:55:49Z</dc:date>
    </item>
  </channel>
</rss>

