<?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 if without else in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/if-without-else-in-tMap/m-p/2314659#M85402</link>
    <description>&lt;P&gt;Hello, I'm looking to solve the case below with a code in the tMap component &lt;B&gt;only&lt;/B&gt;, do you have an idea? I know how to solve it with a tJavaRow (because I can do an if without the else), but if someone has the solution in a tMap, I'm interested&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000StE2XAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151182i40E06174C9CFC588/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000StE2XAAV.png" alt="0695b00000StE2XAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000StE28AAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153151iB7F2B81457557B20/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000StE28AAF.png" alt="0695b00000StE28AAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem with a tMap condition is that I have to put an else condition, so I have to put "", how to do ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:42:27 GMT</pubDate>
    <dc:creator>stephbzr</dc:creator>
    <dc:date>2024-11-15T22:42:27Z</dc:date>
    <item>
      <title>if without else in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-without-else-in-tMap/m-p/2314659#M85402</link>
      <description>&lt;P&gt;Hello, I'm looking to solve the case below with a code in the tMap component &lt;B&gt;only&lt;/B&gt;, do you have an idea? I know how to solve it with a tJavaRow (because I can do an if without the else), but if someone has the solution in a tMap, I'm interested&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000StE2XAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151182i40E06174C9CFC588/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000StE2XAAV.png" alt="0695b00000StE2XAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000StE28AAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153151iB7F2B81457557B20/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000StE28AAF.png" alt="0695b00000StE28AAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem with a tMap condition is that I have to put an else condition, so I have to put "", how to do ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-without-else-in-tMap/m-p/2314659#M85402</guid>
      <dc:creator>stephbzr</dc:creator>
      <dc:date>2024-11-15T22:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: if without else in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-without-else-in-tMap/m-p/2314660#M85403</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;tMap does not support if statement without else..., I don't know how the sequence id comes from in your case, my idea is to store the current sequence id to a global variable before tMap, and use this variable in the else part on tMap, eg:&lt;/P&gt;&lt;P&gt;output_data.date.equals("070")?String.valueOf(name_table.id_column++):(Integer)globalMap.get("varName")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 01:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-without-else-in-tMap/m-p/2314660#M85403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-27T01:34:24Z</dc:date>
    </item>
  </channel>
</rss>

