<?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 expression ? True : False not working on TOS 6.0 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/expression-True-False-not-working-on-TOS-6-0/m-p/2376998#M138985</link>
    <description>&lt;P&gt;Hi Guys!&lt;BR /&gt;Just brand new in using Talend. &amp;nbsp;I am using following expression to change values in my in a field Description:&lt;BR /&gt;StringHandling.TRIM(row1.Description) == "A"? "Val1" :&amp;nbsp;&lt;BR /&gt;StringHandling.TRIM(row1.Description) == "B" ? "Val2" :&lt;BR /&gt;StringHandling.TRIM(row1.Description) == "C" ? "Val3" :&lt;BR /&gt;StringHandling.TRIM(row1.Description) == "D" ? "Val4" :&lt;BR /&gt;StringHandling.TRIM(row1.Description)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's working well in Test of Expression Builder but not working when job runs.&lt;BR /&gt;Please, note I am using TOS 6.0. &amp;nbsp;Please, help me out figuring out where am I wrong.&lt;BR /&gt;Thanks All!&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2015 07:14:35 GMT</pubDate>
    <dc:creator>Aamir_Khan</dc:creator>
    <dc:date>2015-08-31T07:14:35Z</dc:date>
    <item>
      <title>expression ? True : False not working on TOS 6.0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/expression-True-False-not-working-on-TOS-6-0/m-p/2376998#M138985</link>
      <description>&lt;P&gt;Hi Guys!&lt;BR /&gt;Just brand new in using Talend. &amp;nbsp;I am using following expression to change values in my in a field Description:&lt;BR /&gt;StringHandling.TRIM(row1.Description) == "A"? "Val1" :&amp;nbsp;&lt;BR /&gt;StringHandling.TRIM(row1.Description) == "B" ? "Val2" :&lt;BR /&gt;StringHandling.TRIM(row1.Description) == "C" ? "Val3" :&lt;BR /&gt;StringHandling.TRIM(row1.Description) == "D" ? "Val4" :&lt;BR /&gt;StringHandling.TRIM(row1.Description)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's working well in Test of Expression Builder but not working when job runs.&lt;BR /&gt;Please, note I am using TOS 6.0. &amp;nbsp;Please, help me out figuring out where am I wrong.&lt;BR /&gt;Thanks All!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 07:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/expression-True-False-not-working-on-TOS-6-0/m-p/2376998#M138985</guid>
      <dc:creator>Aamir_Khan</dc:creator>
      <dc:date>2015-08-31T07:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: expression ? True : False not working on TOS 6.0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/expression-True-False-not-working-on-TOS-6-0/m-p/2376999#M138986</link>
      <description>may be your expression does not meet to the conditon that is why your not getting expected result on job run.&amp;nbsp; 
&lt;BR /&gt;or your Input data maybe different than you are comparing. so I would suggest you should use below function to check.&amp;nbsp; 
&lt;BR /&gt; 
&lt;PRE&gt;row1.Description.equalsIgnoreCase("A")? "Val1":row1.Description.equalsIgnoreCase("B")? "Val2" :row1.Description.equalsIgnoreCase("C")? "Val3":row1.Description.equalsIgnoreCase("D")? "Val4" :row1.Description&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;for more details on if-then-else you can check this post. 
&lt;A href="http://dwetl.com/2015/08/19/if-then-else-statement-in-talend/" target="_blank" rel="nofollow noopener noreferrer"&gt; if-then-else-statement-in-talend&lt;/A&gt;</description>
      <pubDate>Mon, 31 Aug 2015 08:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/expression-True-False-not-working-on-TOS-6-0/m-p/2376999#M138986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-31T08:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: expression ? True : False not working on TOS 6.0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/expression-True-False-not-working-on-TOS-6-0/m-p/2377000#M138987</link>
      <description>It's great Umesh! its working for me. &amp;nbsp;Also, your links are really very helpful for new users. &amp;nbsp;Many thanks for your help.</description>
      <pubDate>Mon, 31 Aug 2015 11:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/expression-True-False-not-working-on-TOS-6-0/m-p/2377000#M138987</guid>
      <dc:creator>Aamir_Khan</dc:creator>
      <dc:date>2015-08-31T11:31:41Z</dc:date>
    </item>
  </channel>
</rss>

