Re: Repeat With question (newbie level)
Re: Repeat With question (newbie level)
- Subject: Re: Repeat With question (newbie level)
- From: g3pb <email@hidden>
- Date: Wed, 14 Feb 2001 19:40:11 -0900
set alphaList to {"a", "b", "c"}
repeat with i from 1 to number of items in alphaList
if item i of alphaList is "b" then beep
if item i of alphaList = "b" then beep
if item i of alphaList is equal to "b" then beep
if item i of alphaList = "b" then beep
end repeat
-- hcir
mailto:email@hidden
Made with a Mac!
>
set alphaList to {"a", "b", "c"}
>
>
repeat with aLetterItem in alphaList
>
set aLetter to contents of aLetterItem
>
if aLetter is equal to "b" then beep 1
>
if aLetter is "b" then beep 1
>
if aLetter = "b" then beep 1
>
if aLetter is equal to "b" then beep 1
>
if (aLetter as string) is equal to "b" then beep 1
>
end repeat