• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Jumping to next iteration in loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Jumping to next iteration in loop


  • Subject: Re: Jumping to next iteration in loop
  • From: Timothy Bates <email@hidden>
  • Date: Sun, 14 Oct 2001 00:09:15 +1000

On 14/10/01 12:02 AM, "Paul Hague" <email@hidden> wrote:
> I need a statement equivalent to the 'continue' statement in C.
> how would experienced programmers work around this apparent
> limitation in the language?

No idea :-) But I would just wrap the bit you want to skip in an if
statement:

repeat with n from 1 to 10
if n mod 3 is not 0 then
--like-continue
else
display dialog n
end if
end repeat


  • Follow-Ups:
    • Re: Jumping to next iteration in loop
      • From: Paul Hague <email@hidden>
References: 
 >Jumping to next iteration in loop (From: Paul Hague <email@hidden>)

  • Prev by Date: Jumping to next iteration in loop
  • Next by Date: Re: Jumping to next iteration in loop
  • Previous by thread: Jumping to next iteration in loop
  • Next by thread: Re: Jumping to next iteration in loop
  • Index(es):
    • Date
    • Thread