<?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: tMap Expression Builder - IF-ELSE statements in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203628#M4851</link>
    <description>What if..&lt;BR /&gt; Year_ID is int &lt;BR /&gt;ColumnA is double&lt;BR /&gt;output ColumnC is double&lt;BR /&gt;row1.Year_ID &amp;lt; 2009 ? 2000+(Integer.parseInt(row2.ColumnA)) : Integer.parseInt(2008+row2.ColumnA)&lt;BR /&gt;I tried but it returns error.&lt;BR /&gt;Please help me, thanks!</description>
    <pubDate>Thu, 07 Feb 2013 01:36:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-07T01:36:17Z</dc:date>
    <item>
      <title>tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203622#M4845</link>
      <description>Hi folks,
&lt;BR /&gt;Just wondering if it is possible to create if-else statements in the tMap expression builder. If you could give some examples it would be much appreciated.
&lt;BR /&gt;Thank you in advance!</description>
      <pubDate>Sat, 16 Nov 2024 13:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203622#M4845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203623#M4846</link>
      <description>Certainly is. Use standard Java syntax: &amp;lt;boolean test condition&amp;gt;?&amp;lt;then expression&amp;gt;:else expression. For example:
&lt;BR /&gt;
&lt;PRE&gt;row1.myKey.equals("FirstValue")?1:0&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Jul 2010 01:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203623#M4846</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-30T01:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203624#M4847</link>
      <description>Thanks. I was also looking for this and it worked fine. Is there a reference for all these syntax. I dont find it in the user guide or reference guide. I am not a java developer and would like to learn these just for the purpose of using talend effectively.</description>
      <pubDate>Mon, 22 Oct 2012 09:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203624#M4847</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-10-22T09:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203625#M4848</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Thanks. I was also looking for this and it worked fine. Is there a reference for all these syntax. I dont find it in the user guide or reference guide. I am not a java developer and would like to learn these just for the purpose of using talend effectively.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Unfortunately, there is no a document for these syntax, but you can always learn these knowledge and experience from Talend forum.</description>
      <pubDate>Mon, 22 Oct 2012 10:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203625#M4848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-22T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203626#M4849</link>
      <description>Hi everyone, 
&lt;BR /&gt;How about this expression at tMap? Could you please help me on the Java syntax?
&lt;BR /&gt;Example expression at output ColumnC,
&lt;BR /&gt;if row1.Year_ID &amp;lt; 2009
&lt;BR /&gt; 2000+row2.ColumnA
&lt;BR /&gt;else
&lt;BR /&gt; 2008+row2.ColumnA
&lt;BR /&gt;For '+', it's concatenating the value rather than actual add operation.
&lt;BR /&gt;Your help is very much appreciated!</description>
      <pubDate>Wed, 06 Feb 2013 18:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203626#M4849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-06T18:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203627#M4850</link>
      <description>Presuming that Year_ID and ColumnA are integers, then just:&lt;BR /&gt;row1.Year_ID &amp;lt; 2009 ? 2000+row2.ColumnA : 2008+row2.ColumnA</description>
      <pubDate>Wed, 06 Feb 2013 22:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203627#M4850</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-02-06T22:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203628#M4851</link>
      <description>What if..&lt;BR /&gt; Year_ID is int &lt;BR /&gt;ColumnA is double&lt;BR /&gt;output ColumnC is double&lt;BR /&gt;row1.Year_ID &amp;lt; 2009 ? 2000+(Integer.parseInt(row2.ColumnA)) : Integer.parseInt(2008+row2.ColumnA)&lt;BR /&gt;I tried but it returns error.&lt;BR /&gt;Please help me, thanks!</description>
      <pubDate>Thu, 07 Feb 2013 01:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203628#M4851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-07T01:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203629#M4852</link>
      <description>What's the error?!</description>
      <pubDate>Thu, 07 Feb 2013 02:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203629#M4852</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-02-07T02:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203630#M4853</link>
      <description>Hi Alevy,&lt;BR /&gt;Sorry, looks like I didn't think hard. tConvertType simply solved my problem. &lt;BR /&gt;But I have another problem, what if I have 3 conditions?&lt;BR /&gt;Is my design correct? &lt;BR /&gt;row1.Year_ID &amp;lt; 2009 ? 2000+row2.F0015 : row1.Year_ID = 2009 ? 2008+row2.F0015 : 2012+row2.F0015&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;</description>
      <pubDate>Thu, 07 Feb 2013 02:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203630#M4853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-07T02:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203631#M4854</link>
      <description>hello&lt;BR /&gt;can anyone please tell me how to divide a data but not all of them&amp;nbsp;&lt;BR /&gt;for example i've the row 'type' witch content so many informations , i want just the 'type' == "stock" i want to have them like they are but when 'type' != "stock" i want to divide all the datas /7 &lt;BR /&gt;so Stock is for the weekends and the others are for the days &amp;nbsp;&lt;BR /&gt;thanks&amp;nbsp;</description>
      <pubDate>Fri, 16 Sep 2016 15:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203631#M4854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-16T15:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203632#M4855</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hello &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;i want to do this condition with tmap&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Répéter VU_ALIM_TABLEAU_INTEGRATION.DATE + 1 Jusqu’à Date d’expédition - 1&lt;/SPAN&gt;&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/00539000005I8GrAAK"&gt;@alevy&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt;Certainly is. Use standard Java syntax: &amp;lt;boolean test condition&amp;gt;?&amp;lt;then expression&amp;gt;:else expression. For example: 
 &lt;BR /&gt; 
 &lt;PRE&gt;row1.myKey.equals("FirstValue")?1:0&lt;/PRE&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;please can anyone help me please and thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203632#M4855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T13:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203633#M4856</link>
      <description>&lt;P&gt;Hello folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to use this if-else statement in Talend Expression Builder. Please help me on this&lt;/P&gt;
&lt;P&gt;If&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Trim(( IF IsNotNull((ffr_dcconso_ref_initial.TITLE)) THEN (ffr_dcconso_ref_initial.TITLE) ELSE (""))) &amp;lt;&amp;gt; ""&lt;/P&gt;
&lt;P&gt;then&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Trim(( IF IsNotNull((ffr_dcconso_ref_initial.TITLE)) THEN (ffr_dcconso_ref_initial.TITLE) ELSE (""))) = "1"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;then "MR"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;else ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--FLAG&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 06:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203633#M4856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T06:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203634#M4857</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;You can use ternary if-else operator in tMap expression.&lt;/P&gt; 
&lt;P&gt;Condition?value if true: value if false&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 10:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203634#M4857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T10:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203635#M4858</link>
      <description>&lt;P&gt;how can i get if condition,&lt;/P&gt;&lt;P&gt;if source = 'actif'&amp;nbsp; then '1'&lt;/P&gt;&lt;P&gt;else if '0'&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 04:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203635#M4858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-04T04:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: tMap Expression Builder - IF-ELSE statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203636#M4859</link>
      <description>&lt;P&gt;(source == actif)?1:0&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 19:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Expression-Builder-IF-ELSE-statements/m-p/2203636#M4859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-04T19:42:14Z</dc:date>
    </item>
  </channel>
</rss>

