<?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 Do... While... Loop... in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Do-While-Loop/m-p/1570550#M41601</link>
    <description>&lt;P&gt;Helpful tip for others:&lt;/P&gt;&lt;P&gt;While the help documentation indicates that you can set your condition at the beginning of the statement using WHILE, I found that the condition was not being triggered and the loop would go on until I aborted the script. When I moved the condition to the end, it worked as expected.&lt;/P&gt;&lt;P&gt;SET v_loop = 1;&lt;/P&gt;&lt;P&gt;DO&lt;/P&gt;&lt;P&gt;TRACE Loop Number: $(v_loop);&lt;/P&gt;&lt;P&gt;LOOP WHILE $(v_loop) &amp;lt;= 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:03:11 GMT</pubDate>
    <dc:creator>chrishayes</dc:creator>
    <dc:date>2024-11-16T06:03:11Z</dc:date>
    <item>
      <title>Do... While... Loop...</title>
      <link>https://community.qlik.com/t5/App-Development/Do-While-Loop/m-p/1570550#M41601</link>
      <description>&lt;P&gt;Helpful tip for others:&lt;/P&gt;&lt;P&gt;While the help documentation indicates that you can set your condition at the beginning of the statement using WHILE, I found that the condition was not being triggered and the loop would go on until I aborted the script. When I moved the condition to the end, it worked as expected.&lt;/P&gt;&lt;P&gt;SET v_loop = 1;&lt;/P&gt;&lt;P&gt;DO&lt;/P&gt;&lt;P&gt;TRACE Loop Number: $(v_loop);&lt;/P&gt;&lt;P&gt;LOOP WHILE $(v_loop) &amp;lt;= 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Do-While-Loop/m-p/1570550#M41601</guid>
      <dc:creator>chrishayes</dc:creator>
      <dc:date>2024-11-16T06:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Do... While... Loop...</title>
      <link>https://community.qlik.com/t5/App-Development/Do-While-Loop/m-p/1570615#M41602</link>
      <description>&lt;P&gt;Not sure why, but this works&lt;/P&gt;&lt;PRE&gt;SET v_loop = 1;

DO WHILE &lt;FONT color="#FF0000"&gt;v_loop&lt;/FONT&gt; &amp;lt;= 10
LET v_loop = $(v_loop) + 1;

TRACE Loop Number: $(v_loop);

LOOP&lt;/PRE&gt;&lt;P&gt;but this doesn't&lt;/P&gt;&lt;PRE&gt;SET v_loop = 1;

DO WHILE &lt;FONT color="#FF0000"&gt;$(v_loop)&lt;/FONT&gt; &amp;lt;= 10
LET v_loop = $(v_loop) + 1;

TRACE Loop Number: $(v_loop);

LOOP&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 14:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Do-While-Loop/m-p/1570615#M41602</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-17T14:50:54Z</dc:date>
    </item>
  </channel>
</rss>

