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

repeat question


  • Subject: repeat question
  • From: Thomas Myers <email@hidden>
  • Date: Wed, 12 Dec 2001 16:44:46 -0500

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.

Thanks

--
________________________________________________________________________
Thomas Myers - ITA,Inc. Apple Solution Expert: Product Professional
(585)328-7380
1250 Scottsville Rd, Ste 2 mailto:email@hidden
Rochester, NY 14624-5757 http://www.itainc.com

C/C++, Applescript, XML, Photoshop Plug-Ins, Automated QA Testing, SCSI, Firewire, Filemaker, Mac/Win cross platform solutions.
________________________________________________________________________


  • Follow-Ups:
    • Re: repeat question
      • From: Matthew Smith <email@hidden>
  • Prev by Date: Re: product version not working?
  • Next by Date: Re: product version not working?
  • Previous by thread: Re: Crashing applets OSX 10.1.1 (more)
  • Next by thread: Re: repeat question
  • Index(es):
    • Date
    • Thread