<?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: Multiple If/case Statement in tMap Expression Builder in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227490#M19080</link>
    <description>&lt;P&gt;LOL just searched for the same question... and look what just popped up... answers to the question I asked 12 years ago. But looks like I never said thanks... so a belated 12 year thanks to @Remi Masri​&amp;nbsp;@Christian Riedel​&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 14:03:52 GMT</pubDate>
    <dc:creator>Radnip</dc:creator>
    <dc:date>2022-07-29T14:03:52Z</dc:date>
    <item>
      <title>Multiple If/case Statement in tMap Expression Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227484#M19074</link>
      <description>I seem to be doing this all the time, whenever there is a simple IF I just put it in the Expression builder eg: 
&lt;BR /&gt;myValue == "test" ? "True" : "False" 
&lt;BR /&gt;Now if I want to have multiple if's in the expression builder I'm having to either create a separate method and call it from the expression builder or use a tJavaRow. Is there a way to do the following in the expression builder directly as it just seems overkill to go out to a separate method/tJavaRow: 
&lt;BR /&gt;if (myValue == "test"){ 
&lt;BR /&gt; return "True"; 
&lt;BR /&gt;}elseif(myValue == "something else"{ 
&lt;BR /&gt; return "False"; 
&lt;BR /&gt;}else{ 
&lt;BR /&gt; return "True"; 
&lt;BR /&gt;}</description>
      <pubDate>Sat, 16 Nov 2024 13:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227484#M19074</guid>
      <dc:creator>Radnip</dc:creator>
      <dc:date>2024-11-16T13:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If/case Statement in tMap Expression Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227485#M19075</link>
      <description>Hi, 
&lt;BR /&gt;the following expression should be equivalent to the IF statement you posted: 
&lt;BR /&gt; 
&lt;PRE&gt;(myValue == "test") ? "True" :  (  ( myValue == "something else" ) ? "False" : "True" )&lt;/PRE&gt; 
&lt;BR /&gt;The complexer the if statement is, the harder this is to read / understand though &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; 
&lt;BR /&gt;Anyways, hope this helps! 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Christian</description>
      <pubDate>Thu, 19 Aug 2010 14:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227485#M19075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-19T14:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If/case Statement in tMap Expression Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227486#M19076</link>
      <description>Hello gabbs,&lt;BR /&gt;One thing you could do is :  myValue == "test" ? "True" : (myValue == "something else")? "False" : "True" that would be a translation of your code above.&lt;BR /&gt;Hope it helps!</description>
      <pubDate>Thu, 19 Aug 2010 14:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227486#M19076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-19T14:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If/case Statement in tMap Expression Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227487#M19077</link>
      <description>Aye someone was quicker 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 19 Aug 2010 14:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227487#M19077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-19T14:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If/case Statement in tMap Expression Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227488#M19078</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Aye someone was quicker &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; only a few seconds ... but comforting, to see, that we are of the same oppinion!</description>
      <pubDate>Thu, 19 Aug 2010 14:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227488#M19078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-19T14:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If/case Statement in tMap Expression Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227489#M19079</link>
      <description>IIF ( (ISNULL(LE_CD) AND (MD_SOURCE_SYSTEM_O='15' OR MD_SOURCE_SYSTEM_O ='16')), OPERATING_UNIT_ID,&amp;nbsp;&lt;BR /&gt;IIF ( (ISNULL(LE_CD) AND (MD_SOURCE_SYSTEM_O = '25' OR MD_SOURCE_SYSTEM_O = '28' OR MD_SOURCE_SYSTEM_O = '27')),&lt;BR /&gt;IIF(INSTR(OPERATING_UNIT_NAME_INV_LINE,'-',1) &amp;gt; 0, SUBSTR(OPERATING_UNIT_NAME_INV_LINE,1,(INSTR(OPERATING_UNIT_NAME_INV_LINE,'-',1)- 1))),&amp;nbsp;&lt;BR /&gt;LE_CD))..in talend</description>
      <pubDate>Tue, 26 Apr 2016 14:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227489#M19079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-26T14:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If/case Statement in tMap Expression Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227490#M19080</link>
      <description>&lt;P&gt;LOL just searched for the same question... and look what just popped up... answers to the question I asked 12 years ago. But looks like I never said thanks... so a belated 12 year thanks to @Remi Masri​&amp;nbsp;@Christian Riedel​&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 14:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-If-case-Statement-in-tMap-Expression-Builder/m-p/2227490#M19080</guid>
      <dc:creator>Radnip</dc:creator>
      <dc:date>2022-07-29T14:03:52Z</dc:date>
    </item>
  </channel>
</rss>

