<?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: Conditional expression in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Conditional-expression-in-tmap/m-p/2368696#M131929</link>
    <description>&lt;P&gt;if row1.XXX is a string check it's not null or empty first&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(!Relational.ISNULL(row1.XXX) &amp;amp;&amp;amp; !"".equals(row1.XXX)?row1.XXX.equals("1")?1:0:0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, that error you're getting makes me think that either row1.XXX is not a string in tMap or that the out row is not set to Integer.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 14:35:54 GMT</pubDate>
    <dc:creator>MattE</dc:creator>
    <dc:date>2021-09-27T14:35:54Z</dc:date>
    <item>
      <title>Conditional expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conditional-expression-in-tmap/m-p/2368695#M131928</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column with this possible values:&lt;/P&gt;&lt;P&gt;N/A&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it as an INT, so I have to transform this N/A values... I already have this code in the tmap:&lt;/P&gt;&lt;P&gt;row1.XXX.equals("N/A")?0:1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JMtnhAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135025iEDE75D8C9FEAF43F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JMtnhAAD.png" alt="0695b00000JMtnhAAD.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would be the real code to transform this N/A to 0 and convert the column to int? THANKS YOU&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conditional-expression-in-tmap/m-p/2368695#M131928</guid>
      <dc:creator>EvoticTalend</dc:creator>
      <dc:date>2024-11-15T23:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conditional-expression-in-tmap/m-p/2368696#M131929</link>
      <description>&lt;P&gt;if row1.XXX is a string check it's not null or empty first&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(!Relational.ISNULL(row1.XXX) &amp;amp;&amp;amp; !"".equals(row1.XXX)?row1.XXX.equals("1")?1:0:0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, that error you're getting makes me think that either row1.XXX is not a string in tMap or that the out row is not set to Integer.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 14:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conditional-expression-in-tmap/m-p/2368696#M131929</guid>
      <dc:creator>MattE</dc:creator>
      <dc:date>2021-09-27T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conditional-expression-in-tmap/m-p/2368697#M131930</link>
      <description>&lt;P&gt;Hi! In your code how can i put the "N/A" string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because the error still persist here for the "N/A" in an int column. I wanna say if the columns has null, blank or N/A = 0, else 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 15:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conditional-expression-in-tmap/m-p/2368697#M131930</guid>
      <dc:creator>EvoticTalend</dc:creator>
      <dc:date>2021-09-28T15:04:38Z</dc:date>
    </item>
  </channel>
</rss>

