Re: Skip a step in a repeat loop
Re: Skip a step in a repeat loop
- Subject: Re: Skip a step in a repeat loop
- From: "Serge Belleudy-d'Espinose" <email@hidden>
- Date: Thu, 30 Aug 2001 18:43:32 +0200
At 8:39 -0700 30/08/01, Paul Berkowitz wrote:
>
Somebody here (I forget whom - perhaps Nigel will remember) [posted a really
>
brilliant workaround - nay, solution - to this problem. I use it all the
>
time. As you say, the if/then stuff gets horribly messy, especially when
>
you're trying to exit long before the end of the repeat loop. Here:
>
>
repeat with i from 1 to 100 -- or whatever, any sort of repeat loop
>
>
repeat 1 times
>
>
--blah blah
>
if something "what you want" then
>
exit repeat --goes on to next iteratio
>
end if
>
--lots of blah blah
>
--tons of scripting
>
end repeat
>
end repeat
Sorry, I don't see the benefit. Doesn't the extra repeat loop add the extra tab you're trying to avoid?
Serge
--
\\//\//\// Serge Belleudy-d'Espinose Institut Jacques Monod
// // //
http://www.ijm.jussieu.fr/ Univ. Jussieu - Paris
//\//\//\\