<?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 nested conditions in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/nested-conditions-in-tmap/m-p/2319293#M89557</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone, &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I'm trying to make a condition in my tmap for the filter expression. &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I checked my condition it seems correct but I show it below:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;(((String)globalMap.get("tMsgBox_1_RESULT")).equals("1")?(row9.Agence)==((String)globalMap.get("tMsgBox_2_RESULT")):((String)globalMap.get("tMsgBox_4_RESULT")).equals("1")?(row9.Agence)==((String)globalMap.get("tForeach_1_CURRENT_VALUE")):())&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;And you will find an image of my designer below :&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aze.png" style="width: 870px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6A0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151374iA9D54757995CEF43/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6A0.png" alt="0683p000009M6A0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;And finally here is the error when I run my script:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 819px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M664.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131577i19180AD879D7505E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M664.png" alt="0683p000009M664.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I would like to have some help because I do not understand the error and all of my condition looks correct. Unless the nested conditions can not be achieved as well. If you need more information, do not hesitate to ask me for clarification not knowing for the moment not too much what to specify others.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thank you in advance for your return.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Fabien&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:23:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T05:23:03Z</dc:date>
    <item>
      <title>nested conditions in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/nested-conditions-in-tmap/m-p/2319293#M89557</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone, &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I'm trying to make a condition in my tmap for the filter expression. &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I checked my condition it seems correct but I show it below:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;(((String)globalMap.get("tMsgBox_1_RESULT")).equals("1")?(row9.Agence)==((String)globalMap.get("tMsgBox_2_RESULT")):((String)globalMap.get("tMsgBox_4_RESULT")).equals("1")?(row9.Agence)==((String)globalMap.get("tForeach_1_CURRENT_VALUE")):())&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;And you will find an image of my designer below :&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aze.png" style="width: 870px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6A0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151374iA9D54757995CEF43/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6A0.png" alt="0683p000009M6A0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;And finally here is the error when I run my script:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 819px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M664.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131577i19180AD879D7505E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M664.png" alt="0683p000009M664.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I would like to have some help because I do not understand the error and all of my condition looks correct. Unless the nested conditions can not be achieved as well. If you need more information, do not hesitate to ask me for clarification not knowing for the moment not too much what to specify others.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thank you in advance for your return.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Fabien&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/nested-conditions-in-tmap/m-p/2319293#M89557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: nested conditions in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/nested-conditions-in-tmap/m-p/2319294#M89558</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;The issue says that you are trying to insert incompatible data type to a boolean variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;(((String)globalMap.get("tMsgBox_1_RESULT")).equals("1")
            ?(row9.Agence)==((String)globalMap.get("tMsgBox_2_RESULT"))
			:((String)globalMap.get("tMsgBox_4_RESULT")).equals("1")
			                          ?(row9.Agence)==((String)globalMap.get("tForeach_1_CURRENT_VALUE"))
									   :())&lt;/PRE&gt; 
&lt;P&gt;If you refer your if-else condition, you are not trying to bring the target value to a boolean type. For example, the last part of else is just (). I would recommend you to convert your business logic to make sure that each output of the above condition results in boolean value. Please add a tLogrow to print the output at each stage to validate the results.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please verify the need of a message box in the production environment? If you need to print any data or control the flow, tjava component is more optimal.&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, 04 Jul 2019 15:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/nested-conditions-in-tmap/m-p/2319294#M89558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-04T15:48:53Z</dc:date>
    </item>
  </channel>
</rss>

