<?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 When condition in script for set variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/When-condition-in-script-for-set-variable/m-p/391949#M696744</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 just want to set my variable when a condition is true so I tried: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when $(aktuellerMulti)&amp;gt;=$(j) set rundungs = $(rundungs)#$(rundung);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows why this doesnt work and has got a solution?&lt;/P&gt;&lt;P&gt;Thanks in advance ! &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, 28 Feb 2013 08:36:28 GMT</pubDate>
    <dc:creator>richters</dc:creator>
    <dc:date>2013-02-28T08:36:28Z</dc:date>
    <item>
      <title>When condition in script for set variable</title>
      <link>https://community.qlik.com/t5/QlikView/When-condition-in-script-for-set-variable/m-p/391949#M696744</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 just want to set my variable when a condition is true so I tried: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when $(aktuellerMulti)&amp;gt;=$(j) set rundungs = $(rundungs)#$(rundung);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows why this doesnt work and has got a solution?&lt;/P&gt;&lt;P&gt;Thanks in advance ! &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, 28 Feb 2013 08:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-condition-in-script-for-set-variable/m-p/391949#M696744</guid>
      <dc:creator>richters</dc:creator>
      <dc:date>2013-02-28T08:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: When condition in script for set variable</title>
      <link>https://community.qlik.com/t5/QlikView/When-condition-in-script-for-set-variable/m-p/391950#M696745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally it's done with an if then else statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if $(aktuellerMulti)&amp;gt;=$(j) then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set rundungs = $(rundungs)#$(rundung);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;end if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work you'll have to explain what you're trying to do and how, i.e post the script or better, post the document your working on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 08:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-condition-in-script-for-set-variable/m-p/391950#M696745</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-28T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: When condition in script for set variable</title>
      <link>https://community.qlik.com/t5/QlikView/When-condition-in-script-for-set-variable/m-p/391951#M696746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works great, but why the hell is there the when-condition available? I really dont get it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 11:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-condition-in-script-for-set-variable/m-p/391951#M696746</guid>
      <dc:creator>richters</dc:creator>
      <dc:date>2013-02-28T11:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: When condition in script for set variable</title>
      <link>https://community.qlik.com/t5/QlikView/When-condition-in-script-for-set-variable/m-p/391952#M696747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let a = 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;When a=1 Set B = 2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So maybe just try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;when aktuellerMulti &amp;gt;= j set rundungs = $(rundungs)#$(rundung);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 11:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-condition-in-script-for-set-variable/m-p/391952#M696747</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-28T11:55:34Z</dc:date>
    </item>
  </channel>
</rss>

