<?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 tloop while with global variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tloop-while-with-global-variable/m-p/2285616#M59238</link>
    <description>&lt;P&gt;Hey ,&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Have got a problem with while loop, probably problem is caused by variable comparison&amp;nbsp; , here's my flow :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flow.png" style="width: 468px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24821i1B3272AE693B3930/image-size/large?v=1.0&amp;amp;px=999" title="flow.png" alt="flow.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The tloop_1 settings&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tloop_settings.png" style="width: 510px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24823i2EE0C0D0F8403D87/image-size/large?v=1.0&amp;amp;px=999" title="tloop_settings.png" alt="tloop_settings.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and tJavaRow where I've put value to variable&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaRow.png" style="width: 558px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24820i8E3BEE503C93FEC7/image-size/large?v=1.0&amp;amp;px=999" title="tJavaRow.png" alt="tJavaRow.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If I choose Loop Type as For it works ok .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Where I've made a mistake ?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&lt;/P&gt; 
&lt;P&gt;Lucjan,&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 13:57:23 GMT</pubDate>
    <dc:creator>lucTalend</dc:creator>
    <dc:date>2020-02-05T13:57:23Z</dc:date>
    <item>
      <title>tloop while with global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tloop-while-with-global-variable/m-p/2285616#M59238</link>
      <description>&lt;P&gt;Hey ,&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Have got a problem with while loop, probably problem is caused by variable comparison&amp;nbsp; , here's my flow :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flow.png" style="width: 468px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24821i1B3272AE693B3930/image-size/large?v=1.0&amp;amp;px=999" title="flow.png" alt="flow.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The tloop_1 settings&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tloop_settings.png" style="width: 510px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24823i2EE0C0D0F8403D87/image-size/large?v=1.0&amp;amp;px=999" title="tloop_settings.png" alt="tloop_settings.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and tJavaRow where I've put value to variable&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaRow.png" style="width: 558px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24820i8E3BEE503C93FEC7/image-size/large?v=1.0&amp;amp;px=999" title="tJavaRow.png" alt="tJavaRow.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If I choose Loop Type as For it works ok .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Where I've made a mistake ?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&lt;/P&gt; 
&lt;P&gt;Lucjan,&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tloop-while-with-global-variable/m-p/2285616#M59238</guid>
      <dc:creator>lucTalend</dc:creator>
      <dc:date>2020-02-05T13:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: tloop while with global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tloop-while-with-global-variable/m-p/2285617#M59239</link>
      <description>&lt;PRE&gt;((String)globalMap.get("status"))=="success"&lt;/PRE&gt;
&lt;P&gt;....will never work. You want to compare the content of object, but you are comparing the objects. Consider an object as a bucket. If you put the word "success" in one bucket and "success" in the other bucket, are they are the same bucket? No. But they do hold the same word. To test for the content of the object you need to use a method called .equals. You would do this like below...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;((String)globalMap.get("status")).equals("success")&lt;/PRE&gt;
&lt;P&gt;This webpage explains what I said above a little better than I did.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.geeksforgeeks.org/difference-equals-method-java/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.geeksforgeeks.org/difference-equals-method-java/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tloop-while-with-global-variable/m-p/2285617#M59239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-05T15:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: tloop while with global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tloop-while-with-global-variable/m-p/2285618#M59240</link>
      <description>Thank you very much ! that's totally solved my problem !</description>
      <pubDate>Thu, 06 Feb 2020 13:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tloop-while-with-global-variable/m-p/2285618#M59240</guid>
      <dc:creator>lucTalend</dc:creator>
      <dc:date>2020-02-06T13:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: tloop while with global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tloop-while-with-global-variable/m-p/2285619#M59241</link>
      <description>&lt;P&gt;Not a problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tloop-while-with-global-variable/m-p/2285619#M59241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-06T13:47:28Z</dc:date>
    </item>
  </channel>
</rss>

