<?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: IF ELSEIF THEN syntax in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-ELSEIF-THEN-syntax-in-script/m-p/1770915#M717007</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/36143"&gt;@settu_periasamy&lt;/a&gt;&amp;nbsp;gave you the correct syntax using if(), but it looks like you are trying to get the max of a range of values and rangemax() could be a sleeker approach.&lt;/P&gt;&lt;P&gt;Consider replacing your if() with this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;table_calucle :&lt;BR /&gt;LOAD&lt;BR /&gt;code_article,&lt;/P&gt;&lt;P&gt;RangeMax(val1,val2,val3) as longeur&lt;/P&gt;&lt;P&gt;resident base_article;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2020 06:25:02 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-12-29T06:25:02Z</dc:date>
    <item>
      <title>IF ELSEIF THEN syntax in script</title>
      <link>https://community.qlik.com/t5/QlikView/IF-ELSEIF-THEN-syntax-in-script/m-p/1770889#M717005</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;i am trying to write some conditions in the script as follow :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;table_calucle :&lt;BR /&gt;LOAD code_article,&lt;/P&gt;&lt;P&gt;if (val1&amp;gt;=val2 and val1&amp;gt;=val3, then val1&lt;/P&gt;&lt;P&gt;elseif val2&amp;gt;=val1 and val2&amp;gt;=val3 then val2&lt;/P&gt;&lt;P&gt;elseif val3&amp;gt;=val1 and val3&amp;gt;=val2 then val3&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;as longeur&lt;/P&gt;&lt;P&gt;resident base_article;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if someone could help me it would be great&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 00:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-ELSEIF-THEN-syntax-in-script/m-p/1770889#M717005</guid>
      <dc:creator>ahmedwank</dc:creator>
      <dc:date>2020-12-29T00:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: IF ELSEIF THEN syntax in script</title>
      <link>https://community.qlik.com/t5/QlikView/IF-ELSEIF-THEN-syntax-in-script/m-p/1770908#M717006</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;table_calucle :&lt;BR /&gt;LOAD&lt;BR /&gt;code_article,&lt;/P&gt;&lt;P&gt;if (val1&amp;gt;=val2 and val1&amp;gt;=val3, val1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (val2&amp;gt;=val1 and val2&amp;gt;=val3,val2,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(val3&amp;gt;=val1 and val3&amp;gt;=val2,val3))) as longeur&lt;/P&gt;&lt;P&gt;resident base_article;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 05:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-ELSEIF-THEN-syntax-in-script/m-p/1770908#M717006</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2020-12-29T05:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: IF ELSEIF THEN syntax in script</title>
      <link>https://community.qlik.com/t5/QlikView/IF-ELSEIF-THEN-syntax-in-script/m-p/1770915#M717007</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/36143"&gt;@settu_periasamy&lt;/a&gt;&amp;nbsp;gave you the correct syntax using if(), but it looks like you are trying to get the max of a range of values and rangemax() could be a sleeker approach.&lt;/P&gt;&lt;P&gt;Consider replacing your if() with this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;table_calucle :&lt;BR /&gt;LOAD&lt;BR /&gt;code_article,&lt;/P&gt;&lt;P&gt;RangeMax(val1,val2,val3) as longeur&lt;/P&gt;&lt;P&gt;resident base_article;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 06:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-ELSEIF-THEN-syntax-in-script/m-p/1770915#M717007</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-12-29T06:25:02Z</dc:date>
    </item>
  </channel>
</rss>

