• 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: Change the mod result in list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change the mod result in list


  • Subject: Re: Change the mod result in list
  • From: bill <email@hidden>
  • Date: Fri, 23 Aug 2002 02:15:04 +0800

On 23/08/2002 01:54, "Michelle Steiner" <email@hidden> wrote:

> set integerList to {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
> set N to 4
> set resultList to {}
> repeat with i in integerList
> set end of resultList to (i mod N) + 4 * ((i mod N = 0) as integer)
> end repeat

Thanks Michelle, my current method is similar to your method 1.

The above quoted way, well, it's quite complicated, give me some time to
think thoroughly.

Anyway, thanks for your help.


Best Wishes
Bill
_______________________________________________
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.

  • Follow-Ups:
    • Re: Change the mod result in list
      • From: bill <email@hidden>
    • Re: Change the mod result in list
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Change the mod result in list (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Change the mod result in list
  • Next by Date: Re: Change the mod result in list
  • Previous by thread: Re: Change the mod result in list
  • Next by thread: Re: Change the mod result in list
  • Index(es):
    • Date
    • Thread