POV-Ray : Newsgroups : povray.general : #break for loops and macros : Re: #break for loops and macros Server Time
3 Aug 2024 06:14:19 EDT (-0400)
  Re: #break for loops and macros  
From: Christopher James Huff
Date: 18 Apr 2004 13:01:29
Message: <cjameshuff-F19B17.13023318042004@news.povray.org>
In article <4082a04d$1@news.povray.org>,
 Florian Brucker <tor### [at] torfboldcom> wrote:

> Any chance that one will be able to exit loops and macros via #break (or 
> some other command) in an upcoming POV-Ray version?

Probably not any time soon, at least not in an official version. 
Development will probably focus more on POV 4.0 from now on, with only 
maintenance updates to 3.x. If nobody forgets and it works out, it will 
probably eventually get implemented in 4.x. In the meantime, just check 
a halting variable:

#local Stop = false;
#local J = 0;
#while(!Stop & J < 10)
    #if(rand(RS) < 0.1)
        #local Stop = true;
    #else
        #local J = J + 1;
    #end
#end

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.