<?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: How to do if/else statement in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-if-else-statement-in-tmap/m-p/2230812#M21322</link>
    <description>&lt;P&gt;Thank you so much - that worked like a dream!&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 14:10:49 GMT</pubDate>
    <dc:creator>JM39</dc:creator>
    <dc:date>2020-04-28T14:10:49Z</dc:date>
    <item>
      <title>How to do if/else statement in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-if-else-statement-in-tmap/m-p/2230810#M21320</link>
      <description>&lt;P&gt;Hello, I'm very new to Talend and I'm struggling with how to get this correct.&amp;nbsp; For the output in a particular column, I want that derived based on the value in another column.&amp;nbsp; So,&lt;/P&gt;
&lt;P&gt;If the value in the contact type = EMRG then set the emergency contact flag to yes, else no.&amp;nbsp; I've written it like the attached screenshot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;The job runs and produces the output, but all the values in the emergency contact flag column are set to N, even though there are contact types of EMRG.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Where exactly am I going wrong?&amp;nbsp; I'm very new to Talend.&amp;nbsp; Thank you!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-if-else-statement-in-tmap/m-p/2230810#M21320</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2024-11-16T02:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to do if/else statement in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-if-else-statement-in-tmap/m-p/2230811#M21321</link>
      <description>&lt;P&gt;Never use == to compare Strings.&lt;/P&gt;
&lt;P&gt;Instead use the following expression:&lt;/P&gt;
&lt;P&gt;"EMRG".equals(row11.CONTACT_TYPE) ? "Y" : "N"&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 13:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-if-else-statement-in-tmap/m-p/2230811#M21321</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-04-28T13:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to do if/else statement in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-do-if-else-statement-in-tmap/m-p/2230812#M21322</link>
      <description>&lt;P&gt;Thank you so much - that worked like a dream!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-do-if-else-statement-in-tmap/m-p/2230812#M21322</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2020-04-28T14:10:49Z</dc:date>
    </item>
  </channel>
</rss>

