<?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: Script line Error : if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865085#M654799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 small example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET vToday =&amp;nbsp; day(Now());&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF $(vToday) &amp;gt;= 17 and $(vToday)&amp;lt;=31 THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace '17..31';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ELSEIF $(vToday) &amp;gt;= 1 and $(vToday) &amp;lt;=16 THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace '1..16';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and with variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET Midstart = 17;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET MidEnd = 31;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET Start = 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET End = 16;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET vToday =&amp;nbsp; day(Now())-10;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if&amp;nbsp; $(vToday) &amp;gt;= $(Midstart) and $(vToday) &amp;lt;=$(MidEnd) THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace '17..31';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ELSEIF $(vToday) &amp;gt;= $(Start) and $(vToday) &amp;lt;=$(End) THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace '1..16';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Jun 2015 08:43:59 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-06-20T08:43:59Z</dc:date>
    <item>
      <title>Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865077#M654787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi :&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;Can someone help me know what is wrong in my report?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please find the attached error.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6666669845581px;"&gt;Script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;LET todaytime =&amp;nbsp; Date(Now(), 'dd');&lt;/P&gt;&lt;P&gt;LET Midstart = NUM(17,'00') ;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;LET MidEnd = NUM(31,'00') ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LET start = NUM(1,'00') ;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;LET End = NUM(16,'00') ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; $(vToday) &amp;gt;= $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Midstart &lt;/SPAN&gt;) and $(vToday) &amp;lt;=$(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;MidEnd &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="擷取.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90161_擷取.PNG" style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" /&gt;&lt;/P&gt;&lt;P&gt;else if &lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(vToday) &amp;gt;= $(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;start &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;) and $(vToday) &amp;lt;=$(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;End &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG alt="擷取.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/90162_擷取.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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;thanks&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;kyoko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 07:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865077#M654787</guid>
      <dc:creator />
      <dc:date>2015-06-20T07:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865078#M654788</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;go to Help Menu and see IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 07:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865078#M654788</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-20T07:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865079#M654790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI @&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-userid="150721" data-username="dreamer4" href="https://community.qlik.com/people/dreamer4" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7;"&gt;max dreamer&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I go to "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Help Menu&lt;/SPAN&gt;" in this Community?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 07:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865079#M654790</guid>
      <dc:creator />
      <dc:date>2015-06-20T07:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865080#M654791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Use ' ' when you call variable..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;' $(vToday)'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 07:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865080#M654791</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-06-20T07:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865081#M654793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kyoko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please tell me what you have define in vToday variable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 07:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865081#M654793</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2015-06-20T07:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865082#M654795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems you have not define variable &lt;STRONG&gt;vToday&lt;/STRONG&gt; thats why giving such error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 07:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865082#M654795</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2015-06-20T07:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865083#M654796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;A href="https://community.qlik.com/qlik-users/147212"&gt;AbhaySingh&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;About "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vToday&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET ThisExecTimeDate =&amp;nbsp; Date(Now(), 'dd');&lt;/P&gt;&lt;P&gt;LET vToday = Num($(ThisExecTimeDate), '00');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 07:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865083#M654796</guid>
      <dc:creator />
      <dc:date>2015-06-20T07:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865084#M654797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI @&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/MRKachhiaIMP"&gt;MRKachhiaIMP&lt;/A&gt; :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when I use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;' $(vToday)' . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;IMG __jive_id="90163" alt="擷取.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90163_擷取.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 07:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865084#M654797</guid>
      <dc:creator />
      <dc:date>2015-06-20T07:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865085#M654799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 small example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET vToday =&amp;nbsp; day(Now());&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF $(vToday) &amp;gt;= 17 and $(vToday)&amp;lt;=31 THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace '17..31';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ELSEIF $(vToday) &amp;gt;= 1 and $(vToday) &amp;lt;=16 THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace '1..16';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and with variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET Midstart = 17;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET MidEnd = 31;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET Start = 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET End = 16;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET vToday =&amp;nbsp; day(Now())-10;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if&amp;nbsp; $(vToday) &amp;gt;= $(Midstart) and $(vToday) &amp;lt;=$(MidEnd) THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace '17..31';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ELSEIF $(vToday) &amp;gt;= $(Start) and $(vToday) &amp;lt;=$(End) THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace '1..16';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 08:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865085#M654799</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-20T08:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error : if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865086#M654800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your working with variables &amp;amp; varibales holds number use &lt;STRONG&gt;$(vName)&lt;/STRONG&gt; or &lt;STRONG&gt;vName&lt;/STRONG&gt;. If the variable holds string use '$(vName)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 13:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-if/m-p/865086#M654800</guid>
      <dc:creator />
      <dc:date>2015-06-20T13:09:04Z</dc:date>
    </item>
  </channel>
</rss>

