<?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: How can I write an If statement for a Drop Field statement like this? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103390#M637105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&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;TableA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &lt;SPAN style="line-height: 1.5em;"&gt;Floor(Rand() * 17) + 10 as Test,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Counter&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AutoGenerate 23;&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;&lt;STRONG&gt;If $(vDropField) = 1 then&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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Field Counter, False;&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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ENDIF&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2016 10:35:19 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-19T10:35:19Z</dc:date>
    <item>
      <title>How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103389#M637104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write a query like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;floor(RAND()*17)+10 as Test,&lt;/P&gt;&lt;P&gt;1 as Counter&lt;/P&gt;&lt;P&gt;AutoGenerate 23;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If($(vDropField)=1, Drop Field Counter, False);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to drop the field is the vDropField variable contains 1, else don't drop the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work when I write it. Any idea how to do this please? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103389#M637104</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-05-19T10:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103390#M637105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&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;TableA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &lt;SPAN style="line-height: 1.5em;"&gt;Floor(Rand() * 17) + 10 as Test,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Counter&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AutoGenerate 23;&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;&lt;STRONG&gt;If $(vDropField) = 1 then&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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Field Counter, False;&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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ENDIF&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103390#M637105</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-19T10:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103391#M637106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can keep to the example in the HELP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if $(vDropField) =1 then; drop field Counter; end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:this should also work&lt;/P&gt;&lt;P&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;if&amp;nbsp; vDropField =1 then; drop field Counter; end if;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103391#M637106</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-19T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103392#M637107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;floor(RAND()*17)+10 as Test,&lt;/P&gt;&lt;P&gt;1 as Counter&lt;/P&gt;&lt;P&gt;AutoGenerate 23;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If $(vDropField)= 1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Field Counter;&lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125029_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I miss something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Input Box in the UI called vDropField which has value of 1 to test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103392#M637107</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-05-19T10:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103393#M637108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you add a Trace statement for your variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACE &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vDropField);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exit Script;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add this at the top of your script just to check if $(vDropField) is showing one or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103393#M637108</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-19T10:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103394#M637109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&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;STRONG&gt;&lt;EM&gt;If $(vDropField)=1 then&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Drop Field Counter;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;else TRACE "False"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;ENDIF&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103394#M637109</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-19T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103395#M637110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't come through in the script when I check the Variables tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103395#M637110</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-05-19T10:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103396#M637111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check variable overview to see if you can see 1? Also can you make sure you have not mis-spelled or made a typo with the upper case lower case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103396#M637111</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-19T10:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103397#M637112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first code doesn't run and throws the same error as reply to Sunny above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And second code runs but I still have the Counter field available even though vDropField variable carries 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103397#M637112</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-05-19T10:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103398#M637113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you check this variable tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should set the vDropField variable to 1 (and not to an expression like =If( A= B, 1) ) and check the correct case sensitiv spelling in all places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vDropField = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vDropField = 1 ......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103398#M637113</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-19T10:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103399#M637114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seem to have solved it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange behaviour initially, I had an InputBox with the variable value but it gave me the above error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then I went to Variable Overview and assigned a 1 to the variable and reloaded. And it ran fine and dropped the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103399#M637114</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-05-19T11:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103400#M637115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is strange, I would have expected inputbox to have worked the same way as variable view. Are you sure you were using the right variable in the inputbox? Can you check making changes to the value (may be assign 2) through the input box and see if that changes the value in variable overview? Trying to understand where the disconnect is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103400#M637115</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-19T11:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103401#M637116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And have you actually confirmed the input value in your input box by either clicking another object or pressing Enter before starting the reload?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103401#M637116</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-19T11:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103402#M637117</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 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;Try like this&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;LET &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;vDropField = 1;&amp;nbsp; //or replace with your expression&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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TableA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Floor(Rand() * 17) + 10 as Test,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Counter&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AutoGenerate 23;&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If vDropField = 1 then&lt;/STRONG&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Field Counter;&lt;/STRONG&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ENDIF&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103402#M637117</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-05-19T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103403#M637118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to be working in the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103403#M637118</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-19T11:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103404#M637119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is get the script to load the Counter field if vDropField does not evaluate to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far this code works if it evaluates to 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;floor(RAND()*17)+10 as Test,&lt;/P&gt;&lt;P&gt;1 as Counter&lt;/P&gt;&lt;P&gt;AutoGenerate 23;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If $(vDropField) = 1 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Field Counter;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I put an ELSE in to load the Counter field if vDropField does not evaluate to 1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In essence what I am trying to do is allow the user to say load the field or not. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103404#M637119</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-05-19T11:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103405#M637120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let vCounterLoad = If( $(vDropField) = 1,'',', 1 as Counter');&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;TableA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;floor(RAND()*17)+10 as Test&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vCounterLoad)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AutoGenerate 23;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103405#M637120</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-19T11:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103406#M637121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&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;TableA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;floor(RAND()*17)+10 as Test,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1 as Counter&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AutoGenerate 23;&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;If $(vDropField) &lt;STRONG&gt;&amp;lt;&amp;gt;&lt;/STRONG&gt; 1 then&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Field Counter;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103406#M637121</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-19T11:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103407#M637122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;another solution&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&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="text-decoration: line-through;"&gt;TableA:&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;SPAN style="text-decoration: line-through;"&gt;LOAD&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;SPAN style="text-decoration: line-through;"&gt;floor(RAND()*17)+10 as Test,&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;SPAN style="text-decoration: line-through;"&gt;1 as Counter&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;SPAN style="text-decoration: line-through;"&gt;AutoGenerate 23;&lt;/SPAN&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;&lt;SPAN style="text-decoration: line-through;"&gt;If $(vDropField) = 1 then&lt;/SPAN&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;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Field Counter;&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;ELSE&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Drop table TableA;&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;TableA:&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;SPAN style="text-decoration: line-through;"&gt;LOAD&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;SPAN style="text-decoration: line-through;"&gt;floor(RAND()*17)+10 as Test,&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;SPAN style="text-decoration: line-through;"&gt;1 as Counter&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;SPAN style="text-decoration: line-through;"&gt;AutoGenerate 23;&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103407#M637122</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-19T11:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write an If statement for a Drop Field statement like this?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103408#M637124</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;Try like this for else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;TableA:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;floor(RAND()*17)+10 as Test,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;1 as Counter&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;AutoGenerate 23;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;If $(vDropField) = 1 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Field Counter;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;ELSE&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Else statements goes here&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-write-an-If-statement-for-a-Drop-Field-statement-like/m-p/1103408#M637124</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-05-19T11:24:29Z</dc:date>
    </item>
  </channel>
</rss>

