From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: stopping a loop iteration without exiting it Date: Wed, 3 Jan 2018 18:28:05 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 3 Jan 2018 17:28:06 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="2481b789f1303d5d150d4a3c7087b8f8"; logging-data="32477"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qmtXQjd10cNKumkh17L/nTV7rlhnJtRE=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:mN1dgKkxb/uHpoeBT2lEdX7mpWI= Xref: reader02.eternal-september.org comp.lang.ada:49729 Date: 2018-01-03T18:28:05+01:00 List-Id: On 01/03/2018 05:54 PM, Mehdi Saada wrote: > Is there a way to tell to ignore the remaining of a loop ? Like an exit statement, but instead of quiting the loop, it would go to the next iteration. > Can we do this except with a recursive structure ? Yes. It's called an if statement. loop Do_Something; if not Condition then Do_Something_More; end if; end loop; Condition is your condition for going to the next iteration. -- Jeff Carter "Violence is the last refuge of the incompetent." Foundation 151