• 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: "Next" in Repeat?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: "Next" in Repeat?


  • Subject: RE: "Next" in Repeat?
  • From: "Bourque, Jason" <email@hidden>
  • Date: Tue, 23 Jan 2001 10:38:42 -0500

exit repeat will leave the repeat loop entirely but if you want to skip to
the next item in the list then just use the if then to avoid the item that
meet the requirements.

Jason Bourque

> -----Original Message-----
> From: Steve Ivy [SMTP:email@hidden]
> Sent: Tuesday, January 23, 2001 10:26 AM
> To: email@hidden
> Subject: "Next" in Repeat?
>
> I'm still kinda new to AppleScript - is there a way to break out of the
> current loop in a repeat statement and skip to the next one?
>
> Something like:
>
> repeat with i in {1,2,3}
> if i is "2"
> next repeat
> else
> log (i)
> end if
> end repeat
>
> ???
>
> Thanks,
>
> --Steve


  • Prev by Date: "Next" in Repeat?
  • Next by Date: Re: [ANN] Report on AS 1.5.5 from AppleScript Sourcebook
  • Previous by thread: Re: "Next" in Repeat?
  • Next by thread: Re: "Next" in Repeat?
  • Index(es):
    • Date
    • Thread