• 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: Skip current repeat iteration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Skip current repeat iteration


  • Subject: Re: Skip current repeat iteration
  • From: "Rips Ethan J" <email@hidden>
  • Date: Tue, 22 Oct 2002 14:53:12 -0400
  • Thread-topic: Re: Skip current repeat iteration

On Tuesday, 22 Oct 2002, John C. Welch wrote:

>>I know this is a simple
question, but, how does one go about telling a
>>repeat loop, never mind this
one, go on to the next iteration?

Also on Tuesday, 22 Oct 2002, Olivier
replied:

>>with having the code to execute inside a nice if statement, i
don't
>>think there is a skip command
>>
>>repeat
>>if xx then --do the work
>>end if
>>end repeat
If you're working with two loops at once, you can also manipulate the inner
loop to run once with every cycle of the outer loop like so:

repeat with i from 1 to x
set j to i
repeat until j > i
--do stuff
set j to (j + 1)
end repeat
end repeat
HTH

Ethan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Recording in the script editor - Jaguar
  • Next by Date: Re: Skip current repeat iteration
  • Previous by thread: Re: Skip current repeat iteration
  • Next by thread: Fwd: Skip current repeat iteration
  • Index(es):
    • Date
    • Thread