<?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: Loop until condition = true in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Loop-until-condition-true/m-p/1878355#M279</link>
    <description>&lt;P&gt;Hi Sontaki&lt;/P&gt;
&lt;P&gt;Thanks for your request. Unfortunately, we do not have native support for while loops or to loop x times, where is in an input parameter. I would suggest using our ideation pages to post this as a feature request:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas" target="_blank"&gt;https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You are suggesting the most used workaround: looping over a list of x items, and exiting when a condition is met.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PietMichielRappelet_0-1641549606571.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69774i2A01B83652F7668C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PietMichielRappelet_0-1641549606571.png" alt="PietMichielRappelet_0-1641549606571.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;another, less used method, is using labels:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PietMichielRappelet_1-1641549643625.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69775iFA4CCA42672D980D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PietMichielRappelet_1-1641549643625.png" alt="PietMichielRappelet_1-1641549643625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 10:01:26 GMT</pubDate>
    <dc:creator>PietMichielRappelet</dc:creator>
    <dc:date>2022-01-07T10:01:26Z</dc:date>
    <item>
      <title>Loop until condition = true</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Loop-until-condition-true/m-p/1878338#M278</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How can I create a loop that will run until the condition is true. Something like:&lt;/P&gt;
&lt;P&gt;If condition equals true -&amp;gt; exit loop, else check again&lt;/P&gt;
&lt;P&gt;Best I could think of is using the Loop block with list variable as input, so I can run the loop e.g. 20 times. However, it might be that 500 runs are needed. That is why I need the loop to run until the condition is met.&lt;/P&gt;
&lt;P&gt;Hope someone can help. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 09:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Loop-until-condition-true/m-p/1878338#M278</guid>
      <dc:creator>SonTaki</dc:creator>
      <dc:date>2022-01-07T09:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loop until condition = true</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Loop-until-condition-true/m-p/1878355#M279</link>
      <description>&lt;P&gt;Hi Sontaki&lt;/P&gt;
&lt;P&gt;Thanks for your request. Unfortunately, we do not have native support for while loops or to loop x times, where is in an input parameter. I would suggest using our ideation pages to post this as a feature request:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas" target="_blank"&gt;https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You are suggesting the most used workaround: looping over a list of x items, and exiting when a condition is met.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PietMichielRappelet_0-1641549606571.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69774i2A01B83652F7668C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PietMichielRappelet_0-1641549606571.png" alt="PietMichielRappelet_0-1641549606571.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;another, less used method, is using labels:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PietMichielRappelet_1-1641549643625.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69775iFA4CCA42672D980D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PietMichielRappelet_1-1641549643625.png" alt="PietMichielRappelet_1-1641549643625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 10:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Loop-until-condition-true/m-p/1878355#M279</guid>
      <dc:creator>PietMichielRappelet</dc:creator>
      <dc:date>2022-01-07T10:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loop until condition = true</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Loop-until-condition-true/m-p/1878383#M281</link>
      <description>&lt;P&gt;Thank you very much, Piet! I still have some questions:&lt;/P&gt;
&lt;P&gt;Option 1: is there a way to generate a list on the fly, e.g. 1 to 10000, without typing each value individually.&lt;/P&gt;
&lt;P&gt;Option 2: this looks interesting, would you be able to post the json file please?&lt;/P&gt;
&lt;P&gt;Last question: Instead of the Loop block (as you have it in option 1) I tried with a Condition block "If 1 does not equal 2" which theoretically should run indefinitely until the condition within the loop is met :D. However, the entire automation fails. Do you know why?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 10:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Loop-until-condition-true/m-p/1878383#M281</guid>
      <dc:creator>SonTaki</dc:creator>
      <dc:date>2022-01-07T10:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loop until condition = true</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Loop-until-condition-true/m-p/1878445#M282</link>
      <description>&lt;P&gt;Hi SonTaki&lt;BR /&gt;&lt;BR /&gt;Option1: I've used a simple excel and concatenate function but I'm sure many basic script tools can generate this :).&amp;nbsp;&lt;BR /&gt;Option2: I've quickly recreated a similar automation, see attached&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;last question: Loop/if is not the same as while. We loop over a list, meaning you have a fixed set of runs. Also, having an if condition returning always true does not add value in a flow, you can just skip this and continue your flow.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 13:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Loop-until-condition-true/m-p/1878445#M282</guid>
      <dc:creator>PietMichielRappelet</dc:creator>
      <dc:date>2022-01-07T13:09:46Z</dc:date>
    </item>
  </channel>
</rss>

