<?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 How to use If and Set in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-If-and-Set-in-Talend/m-p/2311351#M82398</link>
    <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Talend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for functionality to execute the workflow.&lt;/P&gt;&lt;P&gt;Here is what I need,&lt;/P&gt;&lt;P&gt;If my input variable 1 is 'Usage' and my input variable 2 is blank then I want to set Input variable 2 as 'String'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2018 09:54:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-18T09:54:35Z</dc:date>
    <item>
      <title>How to use If and Set in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-If-and-Set-in-Talend/m-p/2311351#M82398</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Talend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for functionality to execute the workflow.&lt;/P&gt;&lt;P&gt;Here is what I need,&lt;/P&gt;&lt;P&gt;If my input variable 1 is 'Usage' and my input variable 2 is blank then I want to set Input variable 2 as 'String'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 09:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-If-and-Set-in-Talend/m-p/2311351#M82398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-18T09:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use If and Set in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-If-and-Set-in-Talend/m-p/2311352#M82399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;In tMap, you may try this expression on the output side for the field associated to "variable2":&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;row1.variable1 != null &amp;amp;&amp;amp; 
row1.variable1.equalsIgnoreCase("Usage") &amp;amp;&amp;amp; 
(row1.variable2 == null || row1.variable2.equals("")) ? "String" : row1.variable2&lt;/PRE&gt; 
&lt;P&gt;Hope this helps.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 10:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-If-and-Set-in-Talend/m-p/2311352#M82399</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-01-18T10:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use If and Set in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-If-and-Set-in-Talend/m-p/2311353#M82400</link>
      <description>&lt;P&gt;Thanks it worked &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 11:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-If-and-Set-in-Talend/m-p/2311353#M82400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-18T11:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use If and Set in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-If-and-Set-in-Talend/m-p/2311354#M82401</link>
      <description>Great!&lt;BR /&gt;Don't forget to mark this case as solved (Kudos also accepted).</description>
      <pubDate>Thu, 18 Jan 2018 13:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-If-and-Set-in-Talend/m-p/2311354#M82401</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-01-18T13:10:20Z</dc:date>
    </item>
  </channel>
</rss>

