<?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: GDL Program flow question in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Program-flow-question/m-p/71669#M39145</link>
    <description>&lt;BLOCKQUOTE&gt;TomWaltz wrote:&lt;BR /&gt;In C++, there is a keyword CONTINUE, which is used inside a Do.. While or Repeat...Until loop. This keyword aborts the current loop, and starts over at the top.&lt;BR /&gt;
&lt;BR /&gt;
I have not been able to find any equivalent in GDL. Is there some strange undocumented method I am missing?&lt;/BLOCKQUOTE&gt;

I think you meant to say "short circuits the current iteration of the enclosing loop", rather than "aborts the current loop"...&lt;BR /&gt;
&lt;BR /&gt;
The GDL equivalent is ...(groan):  GOTO.&lt;BR /&gt;
&lt;BR /&gt;
More precisely, a GOTO to a label that is just before the NEXT statement.&lt;BR /&gt;
&lt;BR /&gt;
Frequently it can be avoided using IF-THEN logic, but sometimes you have to introduce enough 'flag' variables/logic that the 'CONTINUE' approach looks appealing.  For large loops, maintenance (future comprehension) becomes an issue ... so I suggest at least putting !! CONTINUE at the end of the GOTO line (or something like that) to remind you of the function of the GOTO. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Karl&lt;BR /&gt;
&lt;BR /&gt;
[Edited: typos]</description>
    <pubDate>Thu, 02 Dec 2004 18:41:07 GMT</pubDate>
    <dc:creator>Karl Ottenstein</dc:creator>
    <dc:date>2004-12-02T18:41:07Z</dc:date>
    <item>
      <title>GDL Program flow question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Program-flow-question/m-p/71668#M39144</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;In C++, there is a keyword CONTINUE, which is used inside a Do.. While or Repeat...Until loop. This keyword aborts the current loop, and starts over at the top.&lt;BR /&gt;
&lt;BR /&gt;
I have not been able to find any equivalent in GDL. Is there some strange undocumented method I am missing?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Dec 2004 14:09:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Program-flow-question/m-p/71668#M39144</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2004-12-02T14:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Program flow question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Program-flow-question/m-p/71669#M39145</link>
      <description>&lt;BLOCKQUOTE&gt;TomWaltz wrote:&lt;BR /&gt;In C++, there is a keyword CONTINUE, which is used inside a Do.. While or Repeat...Until loop. This keyword aborts the current loop, and starts over at the top.&lt;BR /&gt;
&lt;BR /&gt;
I have not been able to find any equivalent in GDL. Is there some strange undocumented method I am missing?&lt;/BLOCKQUOTE&gt;

I think you meant to say "short circuits the current iteration of the enclosing loop", rather than "aborts the current loop"...&lt;BR /&gt;
&lt;BR /&gt;
The GDL equivalent is ...(groan):  GOTO.&lt;BR /&gt;
&lt;BR /&gt;
More precisely, a GOTO to a label that is just before the NEXT statement.&lt;BR /&gt;
&lt;BR /&gt;
Frequently it can be avoided using IF-THEN logic, but sometimes you have to introduce enough 'flag' variables/logic that the 'CONTINUE' approach looks appealing.  For large loops, maintenance (future comprehension) becomes an issue ... so I suggest at least putting !! CONTINUE at the end of the GOTO line (or something like that) to remind you of the function of the GOTO. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Karl&lt;BR /&gt;
&lt;BR /&gt;
[Edited: typos]</description>
      <pubDate>Thu, 02 Dec 2004 18:41:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Program-flow-question/m-p/71669#M39145</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-12-02T18:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Program flow question</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-Program-flow-question/m-p/71670#M39146</link>
      <description>Karl&lt;BR /&gt;
&lt;BR /&gt;
you're right, I wanted to "short circuit" the current loop.&lt;BR /&gt;
&lt;BR /&gt;
I was afraid you were going to say to use GOTO. Amazing how repulsive that feels!</description>
      <pubDate>Thu, 02 Dec 2004 22:03:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-Program-flow-question/m-p/71670#M39146</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2004-12-02T22:03:37Z</dc:date>
    </item>
  </channel>
</rss>

