<?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: Conditional If Statement Help in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Conditional-If-Statement-Help/m-p/2218281#M13534</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;What is the data type for the input column&amp;nbsp;&lt;STRONG&gt;row2.Adj_Adj_Amount&amp;nbsp;&lt;/STRONG&gt;If its double then fine. Else, the most easy way is to handle the condition according to your input data type and keep the output component same as input data type. You can add a tConvertType after tMap to convert to any other data type.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Could you please double check whether the issue is at same line or something different by toggling to the code tab in your Studio Designer sheet? It will show the exact error and you can identify the corresponding problematic column.&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;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2019 03:37:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-25T03:37:25Z</dc:date>
    <item>
      <title>Conditional If Statement Help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conditional-If-Statement-Help/m-p/2218280#M13533</link>
      <description>&lt;P&gt;In tMap I'm writing this statement&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;row2.Credit_Debit.equals("CR")? row2.Adj_Adj_Amount: 0&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;The data type to output is double.&amp;nbsp; Basically, if a column is this text than give the amount in another column &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 744px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7sj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129424i7B9457FBFE06977F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7sj.png" alt="0683p000009M7sj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;otherwise zero.&amp;nbsp; Getting compilation errors.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conditional-If-Statement-Help/m-p/2218280#M13533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional If Statement Help</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conditional-If-Statement-Help/m-p/2218281#M13534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;What is the data type for the input column&amp;nbsp;&lt;STRONG&gt;row2.Adj_Adj_Amount&amp;nbsp;&lt;/STRONG&gt;If its double then fine. Else, the most easy way is to handle the condition according to your input data type and keep the output component same as input data type. You can add a tConvertType after tMap to convert to any other data type.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Could you please double check whether the issue is at same line or something different by toggling to the code tab in your Studio Designer sheet? It will show the exact error and you can identify the corresponding problematic column.&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;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 03:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conditional-If-Statement-Help/m-p/2218281#M13534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-25T03:37:25Z</dc:date>
    </item>
  </channel>
</rss>

