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

Re: repeat question


  • Subject: Re: repeat question
  • From: Matthew Smith <email@hidden>
  • Date: Thu, 13 Dec 2001 14:20:36 +1100

on 13/12/2001 08:44, Thomas Myers at email@hidden wrote:

> Does anyone know how to continue in a repeat statment without exiting.
>
> repeat with aLine in {1,2,3,4}
> if aLine = 3 then
> continue
> end if
> log aline
> end repeat
>
>
> So what I want in this example is only 1, 2 and 4 logged out.
>
> Yes I know i could do this by putting all of the stuff below the if in side
> the if, but in my case it's LOTS and it would be more readable if I could just
> tell it to continue to next repeat item.

You are asking something that isn't in the AppleScript language. You can't
get around using an if statement.

--
Matthew Smith


References: 
 >repeat question (From: Thomas Myers <email@hidden>)

  • Prev by Date: Re: Newbie question
  • Next by Date: Re: script editor
  • Previous by thread: repeat question
  • Next by thread: Re: repeat question
  • Index(es):
    • Date
    • Thread