<?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 use nested if condition in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-nested-if-condition-in-tmap/m-p/2296601#M69251</link>
    <description>thanx willm</description>
    <pubDate>Thu, 10 Apr 2014 15:47:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-10T15:47:21Z</dc:date>
    <item>
      <title>how to use nested if condition in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-nested-if-condition-in-tmap/m-p/2296599#M69249</link>
      <description>I have one decode. I want to convert it into if-else condition of talend in tmap&lt;BR /&gt;decode(v_DURATION,'PERPETUAL',NULL,NULL,NULL,'Duration:' ||v_DURATION)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Kiran.</description>
      <pubDate>Sat, 16 Nov 2024 11:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-nested-if-condition-in-tmap/m-p/2296599#M69249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to use nested if condition in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-nested-if-condition-in-tmap/m-p/2296600#M69250</link>
      <description>Kiran - let me give this a stab... In plain English, here's what your statement translates to: &lt;BR /&gt;if v_DURATION = PERPETUAL then Null&lt;BR /&gt;else if v_DURATION = Null then Null&lt;BR /&gt;else 'Duration:' ||v_DURATION&lt;BR /&gt;Using ternary operators in tMap, the standard is "test condtion ? true : false"&lt;BR /&gt;row1.v_DURATION !=null &amp;amp;&amp;amp; !row1.v_DURATION.isEmpty() ? (row1.v_DURATION.equals("PERPETUAL")? null : row1.v_DURATION.equals("NULL")? NULL : "Duration: " + row1.v_DURATION) : ""&lt;BR /&gt;To avoid the pervasive nullpointer exception, I first check to make sure v_Duration has a non-Null value...</description>
      <pubDate>Thu, 10 Apr 2014 15:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-nested-if-condition-in-tmap/m-p/2296600#M69250</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-04-10T15:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to use nested if condition in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-nested-if-condition-in-tmap/m-p/2296601#M69251</link>
      <description>thanx willm</description>
      <pubDate>Thu, 10 Apr 2014 15:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-nested-if-condition-in-tmap/m-p/2296601#M69251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-10T15:47:21Z</dc:date>
    </item>
  </channel>
</rss>

