<?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: if-else logic in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243964#M30276</link>
    <description>Hi,&lt;BR /&gt;The problem is with data type. now i have changed the data type of that field as "Boolean" and it is working fine.&lt;BR /&gt;Thanks.&lt;BR /&gt;Regards,&lt;BR /&gt;Vetha.</description>
    <pubDate>Mon, 03 Oct 2016 07:31:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-03T07:31:54Z</dc:date>
    <item>
      <title>if-else logic in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243960#M30272</link>
      <description>hi guys,
&lt;BR /&gt;I want to implement if else logic in expression builder in tmap.If i get an input string as "TRUE" i want to make it 1 in my output csv file or else if i get "FALSE" then i want to make it as 0 or else i want to make it as null.How to acheive this via tmap.Please Reply.Thanks in advance.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Neeraj</description>
      <pubDate>Sat, 16 Nov 2024 13:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243960#M30272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: if-else logic in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243961#M30273</link>
      <description>Hi neeraj, 
&lt;BR /&gt;You cannot use if then else explicitly in tMap, however you can use a java ternary expression. e.g. row1.field.equals("TRUE") ? 1 : 0 
&lt;BR /&gt;If you have to use if then else then use a tJavaRow or write a custom routine. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Rick</description>
      <pubDate>Tue, 16 Nov 2010 08:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243961#M30273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-16T08:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: if-else logic in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243962#M30274</link>
      <description>Hi,&lt;BR /&gt;I have tried with the same logic(row1.field.equals("TRUE") ? 1 : 0) but it is returning me only "0". please could any one help me on this?&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Regards,&lt;BR /&gt;Vetha.</description>
      <pubDate>Thu, 29 Sep 2016 11:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243962#M30274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T11:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: if-else logic in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243963#M30275</link>
      <description>If you trying to print the value of&amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;row1.field &amp;nbsp;what does it prints?&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I have used it number of times and it has worked everytime.&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243963#M30275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T14:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: if-else logic in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243964#M30276</link>
      <description>Hi,&lt;BR /&gt;The problem is with data type. now i have changed the data type of that field as "Boolean" and it is working fine.&lt;BR /&gt;Thanks.&lt;BR /&gt;Regards,&lt;BR /&gt;Vetha.</description>
      <pubDate>Mon, 03 Oct 2016 07:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-else-logic-in-tmap/m-p/2243964#M30276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-03T07:31:54Z</dc:date>
    </item>
  </channel>
</rss>

