<?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: Assign variable inside 'If' statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213259#M869659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But i see you want this in the front end, not in script. Do you want this to be dynamic and continuously calculated? Define them in the script like 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;Set vNext = '=&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(second(now())=0, 1, 0)';&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="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Set vShow = '=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(second(now())=0, 1, 0)';&lt;/SPAN&gt;&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="font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&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="font-style: inherit; font-weight: inherit;"&gt;Now the value will continuously update in the front end (providing you are using QV desktop or the IE plugin).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2016 09:29:29 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-11-23T09:29:29Z</dc:date>
    <item>
      <title>Assign variable inside 'If' statement</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213256#M869656</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 have to assign value to a variable inside 'If' statement in an object and not in the script .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;if(second(now())=0,vShow=1,vNext=1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I see variable overview the value has not been set for vShow and vNext.&lt;/P&gt;&lt;P&gt;or Please provide some other method to achieve above requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly respond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Dinesh M &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213256#M869656</guid>
      <dc:creator>dineshmdane</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assign variable inside 'If' statement</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213257#M869657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were are you placing the if statement?&lt;/P&gt;&lt;P&gt;and what do you aim to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 09:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213257#M869657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-23T09:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Assign variable inside 'If' statement</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213258#M869658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let vNext = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(second(now())=0, 1, 0);&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;SPAN style="font-size: 13.3333330154419px;"&gt;Let vShow = &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(second(now())=0, 1, 0);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 09:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213258#M869658</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-23T09:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assign variable inside 'If' statement</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213259#M869659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But i see you want this in the front end, not in script. Do you want this to be dynamic and continuously calculated? Define them in the script like 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;Set vNext = '=&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(second(now())=0, 1, 0)';&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="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Set vShow = '=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(second(now())=0, 1, 0)';&lt;/SPAN&gt;&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="font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&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="font-style: inherit; font-weight: inherit;"&gt;Now the value will continuously update in the front end (providing you are using QV desktop or the IE plugin).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 09:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213259#M869659</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-23T09:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign variable inside 'If' statement</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213260#M869660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Jonathan the solution you gave is working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;But the application goes 'not responding' often is there a way to minimize that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 10:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213260#M869660</guid>
      <dc:creator>dineshmdane</dc:creator>
      <dc:date>2016-11-23T10:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Assign variable inside 'If' statement</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213261#M869661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now() updates at a millisecond rate, and if there are any expressions affected by vNext or vShow, that may cause your application to recalculate. Are either of these variables part of any chart expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 06:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213261#M869661</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-24T06:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Assign variable inside 'If' statement</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213262#M869662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, Jonathan the variable&amp;nbsp; vNext and vShow are not part of any chart.&lt;/P&gt;&lt;P&gt;But, it is a part of variable event trigger which activates sheet when vNext=1 and same for vShow=1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Dinesh M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 06:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-variable-inside-If-statement/m-p/1213262#M869662</guid>
      <dc:creator>dineshmdane</dc:creator>
      <dc:date>2016-11-24T06:41:50Z</dc:date>
    </item>
  </channel>
</rss>

