Trevor G Quayle <Tin### [at] hotmailcom> wrote:
> #declare i=0;
> #while (i<5)
> ...
> #if (something happens that makes me want to terminate the loop early)
> #declare i=-1;
> #end
> #else
> #declare i=i+1;
> #end
> #end
I think that what you wanted to express there is a #break, not an #end.
(No, #break does not currently interrupt loops, although I don't see any
reason why it couldn't.)
You can currently achieve the same effect with:
#declare i=0;
#while (i<5)
...
#if (something happens that makes me want to terminate the loop early)
#declare i=5;
#else
#declare i=i+1;
#end
#end
--
- Warp
Post a reply to this message
|