<?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 Run if else with tFilter Row and tFlowToIterate in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Run-if-else-with-tFilter-Row-and-tFlowToIterate/m-p/2229723#M20581</link>
    <description>&lt;P&gt;Hello community !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 5 files that have the same schema and I want to check then:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If field1 = "a" &amp;amp;&amp;amp; field2 = "b" =&amp;gt; copy the files to dest1&lt;/P&gt;&lt;P&gt;If field1! = "a" &amp;amp;&amp;amp; field2! = "b" =&amp;gt; copy the files to dest2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But a problem appears during the execution&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 11:07:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-07T11:07:45Z</dc:date>
    <item>
      <title>Run if else with tFilter Row and tFlowToIterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-else-with-tFilter-Row-and-tFlowToIterate/m-p/2229723#M20581</link>
      <description>&lt;P&gt;Hello community !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 5 files that have the same schema and I want to check then:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If field1 = "a" &amp;amp;&amp;amp; field2 = "b" =&amp;gt; copy the files to dest1&lt;/P&gt;&lt;P&gt;If field1! = "a" &amp;amp;&amp;amp; field2! = "b" =&amp;gt; copy the files to dest2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But a problem appears during the execution&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 11:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-else-with-tFilter-Row-and-tFlowToIterate/m-p/2229723#M20581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T11:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Run if else with tFilter Row and tFlowToIterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Run-if-else-with-tFilter-Row-and-tFlowToIterate/m-p/2229724#M20582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;When you are reading the columns, you need to do Null check also. The empty strings from an input file will be converted as Null. So you need to check the Null relational check also as shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Relational.ISNULL(row1.data)?null:row1.data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above statement will pass null if the input is null else it will pass actual data. You need to do similar null checks before doing matching or add additional null matching logic in if condition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also in 4.png, you are trying to match two different strings in both sides. If you want the output of tFlowtoIterate, please give Control+Space and it will show the available variables. You need to select them and then do the matching.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 13:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Run-if-else-with-tFilter-Row-and-tFlowToIterate/m-p/2229724#M20582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T13:13:05Z</dc:date>
    </item>
  </channel>
</rss>

