Re: Change the mod result in list
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.