<?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 counting iterations from 1 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tLoop-counting-iterations-from-1/m-p/2242518#M29322</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Just want to check this is working as designed and not a sign something is going wrong.&lt;/P&gt;
&lt;P&gt;When using globalMap.get("tLoop_1_CURRENT_ITERATION") within a component linked to a tLoop component, 1 is returned during the first iteration. I just need to know this is working as designed.&lt;/P&gt;
&lt;P&gt;I know this may seem like an odd question. I've just spent so long counting from 0, found it odd that it started at 1. Couldn't find any documentation calling this out, which then made me worried I've somehow messed it up somewhere else.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:29:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T02:29:33Z</dc:date>
    <item>
      <title>tLoop counting iterations from 1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLoop-counting-iterations-from-1/m-p/2242518#M29322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Just want to check this is working as designed and not a sign something is going wrong.&lt;/P&gt;
&lt;P&gt;When using globalMap.get("tLoop_1_CURRENT_ITERATION") within a component linked to a tLoop component, 1 is returned during the first iteration. I just need to know this is working as designed.&lt;/P&gt;
&lt;P&gt;I know this may seem like an odd question. I've just spent so long counting from 0, found it odd that it started at 1. Couldn't find any documentation calling this out, which then made me worried I've somehow messed it up somewhere else.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLoop-counting-iterations-from-1/m-p/2242518#M29322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: tLoop counting iterations from 1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLoop-counting-iterations-from-1/m-p/2242519#M29323</link>
      <description>This is normal, CURRENT_ITERATION is the rank not the indice current value.&lt;BR /&gt;Imagine you have a look from 10 to 100 with step 5.&lt;BR /&gt;What should be the value for CURRENT_ITERATION during the 1rst iteration?&lt;BR /&gt;During the 2nd?&lt;BR /&gt;And what if you loop from 0 to -100 with step 5?</description>
      <pubDate>Fri, 08 May 2020 06:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLoop-counting-iterations-from-1/m-p/2242519#M29323</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-05-08T06:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: tLoop counting iterations from 1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tLoop-counting-iterations-from-1/m-p/2242520#M29324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 for current iteration is correct. tLoop provides 2 flow variables, current_value and current_iteration.&lt;/P&gt;&lt;P&gt;Current_value will start from whatever you have set as a starting value. Whereas current_iteration will start from 1 only.&lt;/P&gt;&lt;P&gt;You can try printing them and see the values in the log. This might clear your confusion.&lt;/P&gt;&lt;P&gt;For example , if you set the start value of your loop to 0 , then output put will start from&lt;/P&gt;&lt;P&gt;Current_value = 0&lt;/P&gt;&lt;P&gt;Current_iteration = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 06:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tLoop-counting-iterations-from-1/m-p/2242520#M29324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-08T06:32:23Z</dc:date>
    </item>
  </channel>
</rss>

