• 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 a step in a repeat loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Skip a step in a repeat loop


  • Subject: Re: Skip a step in a repeat loop
  • From: "Serge Belleudy-d'Espinose" <email@hidden>
  • Date: Thu, 30 Aug 2001 18:43:32 +0200

At 8:39 -0700 30/08/01, Paul Berkowitz wrote:

>Somebody here (I forget whom - perhaps Nigel will remember) [posted a really
>brilliant workaround - nay, solution - to this problem. I use it all the
>time. As you say, the if/then stuff gets horribly messy, especially when
>you're trying to exit long before the end of the repeat loop. Here:
>
> repeat with i from 1 to 100 -- or whatever, any sort of repeat loop
>
> repeat 1 times
>
> --blah blah
> if something  "what you want" then
> exit repeat --goes on to next iteratio
> end if
> --lots of blah blah
> --tons of scripting
> end repeat
> end repeat

Sorry, I don't see the benefit. Doesn't the extra repeat loop add the extra tab you're trying to avoid?


Serge
--
\\//\//\// Serge Belleudy-d'Espinose Institut Jacques Monod
// // // http://www.ijm.jussieu.fr/ Univ. Jussieu - Paris
//\//\//\\


References: 
 >Re: Skip a step in a repeat loop (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: RE: AppleScript and Video Capture?
  • Next by Date: Re: AppleScript and Video Capture?
  • Previous by thread: Re: Skip a step in a repeat loop
  • Next by thread: Re: Skip a step in a repeat loop
  • Index(es):
    • Date
    • Thread