Re: Jumping to next iteration in loop
Re: Jumping to next iteration in loop
- Subject: Re: Jumping to next iteration in loop
- From: Paul Hague <email@hidden>
- Date: Sat, 13 Oct 2001 17:06:56 +0200
Many thanks, Timothy.
Obvious really now you point it out.
Cheers
Paul
>
From: Timothy Bates <email@hidden>
>
Date: Sun, 14 Oct 2001 00:09:15 +1000
>
To: Paul Hague <email@hidden>, AppleScriptUsers List
>
<email@hidden>
>
Subject: Re: Jumping to next iteration in loop
>
>
On 14/10/01 12:02 AM, "Paul Hague" <email@hidden> wrote:
>
> I need a statement equivalent to the 'continue' statement in C.
>
> how would experienced programmers work around this apparent
>
> limitation in the language?
>
>
No idea :-) But I would just wrap the bit you want to skip in an if
>
statement:
>
>
repeat with n from 1 to 10
>
if n mod 3 is not 0 then
>
--like-continue
>
else
>
display dialog n
>
end if
>
end repeat
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users