POV-Ray : Newsgroups : povray.pov4.discussion.general : I want to be rid of my stupid mistakes : Re: I want to be rid of my stupid mistakes Server Time
15 May 2024 15:26:44 EDT (-0400)
  Re: I want to be rid of my stupid mistakes  
From: Warp
Date: 22 Jul 2009 08:45:29
Message: <4a6709e9@news.povray.org>
scott <sco### [at] scottcom> wrote:
> >  If the variable mentioned in the condition is not the variable which
> > changes and decides when the loop ends, the checker would give a false
> > positive.

> Can you give an example - I don't understand how that would work (I thought 
> that the condition decided when the loop ended).

#declare Limit = .8;
#while(MyRand() < Limit)
  doSomething();
#end

-- 
                                                          - Warp


Post a reply to this message

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