<?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 without ELSE in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297699#M70243</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Hello,&lt;BR /&gt;In a tMap, I have want to do a test if without else :&lt;BR /&gt;field=toto?YES:&amp;lt;nothing&amp;gt;&lt;BR /&gt;Howcan I do that ?&lt;BR /&gt;Thank you for answers&lt;BR /&gt;Quartz&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Here is what I do to make a field hold a blank value versus a "null" value if value is a String/text: &lt;BR /&gt;field=toto ? YES : ""&lt;BR /&gt;Here is what I do to make a field hold a blank value versus a "null" value if value is Numeric: &lt;BR /&gt;field=toto ? YES : 0</description>
    <pubDate>Wed, 26 Jun 2013 15:01:43 GMT</pubDate>
    <dc:creator>chafer</dc:creator>
    <dc:date>2013-06-26T15:01:43Z</dc:date>
    <item>
      <title>IF without ELSE</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297696#M70240</link>
      <description>Hello,&lt;BR /&gt;In a tMap, I have want to do a test if without else :&lt;BR /&gt;field=toto?YES:&amp;lt;nothing&amp;gt;&lt;BR /&gt;Howcan I do that ?&lt;BR /&gt;Thank you for answers&lt;BR /&gt;Quartz</description>
      <pubDate>Wed, 26 Jun 2013 13:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297696#M70240</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-06-26T13:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: IF without ELSE</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297697#M70241</link>
      <description>Hi 
&lt;BR /&gt;You can set a default value or null or an empty string for ELSE case, there always be a value for the column even though it is null or empty.
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 26 Jun 2013 14:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297697#M70241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-26T14:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: IF without ELSE</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297698#M70242</link>
      <description>Hi,
&lt;BR /&gt;if you mean, that data is just mapped in the if case, u can enable the "expression filter" in the tMap component.
&lt;BR /&gt;Regards,
&lt;BR /&gt;M</description>
      <pubDate>Wed, 26 Jun 2013 15:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297698#M70242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-26T15:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: IF without ELSE</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297699#M70243</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Hello,&lt;BR /&gt;In a tMap, I have want to do a test if without else :&lt;BR /&gt;field=toto?YES:&amp;lt;nothing&amp;gt;&lt;BR /&gt;Howcan I do that ?&lt;BR /&gt;Thank you for answers&lt;BR /&gt;Quartz&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Here is what I do to make a field hold a blank value versus a "null" value if value is a String/text: &lt;BR /&gt;field=toto ? YES : ""&lt;BR /&gt;Here is what I do to make a field hold a blank value versus a "null" value if value is Numeric: &lt;BR /&gt;field=toto ? YES : 0</description>
      <pubDate>Wed, 26 Jun 2013 15:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297699#M70243</guid>
      <dc:creator>chafer</dc:creator>
      <dc:date>2013-06-26T15:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: IF without ELSE</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297700#M70244</link>
      <description>Thank you, Shong,
&lt;BR /&gt;But, if the value do not change, I want to keep the value original, and if I put it in the else, there is an error.
&lt;BR /&gt;Have you try to do that ?
&lt;BR /&gt;Thank you for the help ...
&lt;BR /&gt;Quartz92</description>
      <pubDate>Wed, 26 Jun 2013 15:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297700#M70244</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-06-26T15:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: IF without ELSE</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297701#M70245</link>
      <description>Hi Quartz,
&lt;BR /&gt;i'm not sure what you exactly want to achieve. But if you want to stick with the old value in the ternary operation use the following:
&lt;BR /&gt;
&lt;BR /&gt;field='toto'?&amp;lt;set_value_to_sth_else&amp;gt;:field
&lt;BR /&gt;Regards,
&lt;BR /&gt;M</description>
      <pubDate>Wed, 26 Jun 2013 15:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297701#M70245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-26T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: IF without ELSE</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297702#M70246</link>
      <description>Hi, 
&lt;BR /&gt;My problem is different : 
&lt;BR /&gt;In a tMap, with a test (xxx?www:ddd) I want modidy an output field with a value by testing an input field (output fiels is changed with input field or not (then, I keep original output field). 
&lt;BR /&gt;I do not see how I can do that ... 
&lt;BR /&gt;Thanh you for help, 
&lt;BR /&gt;Quartz</description>
      <pubDate>Thu, 27 Jun 2013 08:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297702#M70246</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-06-27T08:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: IF without ELSE</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297703#M70247</link>
      <description>Hi,
&lt;BR /&gt;ah now we're getting a bit clearer. As fair as i understand you will keep the value in your output attribute, but this value is not available in the input component you use (because it's loaded for example from another table).
&lt;BR /&gt;So in this case you have to provide your output to the tMap as incoming stream. I would suggest the following
&lt;BR /&gt;tInputXXX1_Check Table (row1)--&amp;gt;
&lt;BR /&gt; tMap --&amp;gt; tOutput_Output Table (rowOutput)
&lt;BR /&gt;tInputXXX2_Output Table (row2) --&amp;gt;
&lt;BR /&gt;Now you can use the ternary operator following
&lt;BR /&gt;rowOutput.Attribute = row1.Attribute=='someValue'?:row1.Attribute : row2.Attribute
&lt;BR /&gt;When the if check fails, the existing value from the output component is used. 
&lt;BR /&gt;It might be helpful if you can add a screenshot of the job you modeled so far, then we can get a better understanding.
&lt;BR /&gt;Regards,
&lt;BR /&gt;M</description>
      <pubDate>Thu, 27 Jun 2013 09:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297703#M70247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-27T09:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: IF without ELSE</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297704#M70248</link>
      <description>Thank-you, mmeier&lt;BR /&gt;I did not think to use the same table un input and output.&lt;BR /&gt;I try ...&lt;BR /&gt;Quartz</description>
      <pubDate>Thu, 27 Jun 2013 11:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-without-ELSE/m-p/2297704#M70248</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-06-27T11:40:22Z</dc:date>
    </item>
  </channel>
</rss>

