<?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 ELSE condition for integer and decimal in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/IF-ELSE-condition-for-integer-and-decimal/m-p/2209492#M8296</link>
    <description>&lt;P&gt;Trying to figure out how the IF/ELSE statement should be structured in tMap when trying to filter integers and decimals (I know how to do it for String and Date, but can't seem to figure out for numbers).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've used the below for now and it works, but trying to see if there's another method where I can specify directly "IF integer, accept value, ELSE null"&lt;/P&gt; 
&lt;PRE&gt;row1.field1 % 1 == 0 ? row1.field1 : null &lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 15:25:46 GMT</pubDate>
    <dc:creator>zalibra</dc:creator>
    <dc:date>2019-12-11T15:25:46Z</dc:date>
    <item>
      <title>IF ELSE condition for integer and decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-ELSE-condition-for-integer-and-decimal/m-p/2209492#M8296</link>
      <description>&lt;P&gt;Trying to figure out how the IF/ELSE statement should be structured in tMap when trying to filter integers and decimals (I know how to do it for String and Date, but can't seem to figure out for numbers).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've used the below for now and it works, but trying to see if there's another method where I can specify directly "IF integer, accept value, ELSE null"&lt;/P&gt; 
&lt;PRE&gt;row1.field1 % 1 == 0 ? row1.field1 : null &lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 15:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-ELSE-condition-for-integer-and-decimal/m-p/2209492#M8296</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2019-12-11T15:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: IF ELSE condition for integer and decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-ELSE-condition-for-integer-and-decimal/m-p/2209493#M8297</link>
      <description>Ternary notation (what you're using) is the solution to replace IF/ELSE into tMap.</description>
      <pubDate>Wed, 11 Dec 2019 15:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-ELSE-condition-for-integer-and-decimal/m-p/2209493#M8297</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-12-11T15:48:38Z</dc:date>
    </item>
  </channel>
</rss>

