POV-Ray : Newsgroups : povray.general : Problems with iterations : Re: Problems with iterations Server Time
31 Jul 2024 08:25:05 EDT (-0400)
  Re: Problems with iterations  
From: Penelope20k
Date: 11 Jan 2008 03:44:23
Message: <47872c67@news.povray.org>

news:web.4785b89a636bc06df6ab856c0@news.povray.org...
> Check out this test scene:
>
> #local i = 0;
> #local numerator = 1;
> #local divisor = 6;
> #while(i < numerator)
>  #local i = i + numerator/divisor;
>  #debug concat("i = ", str(i, 0, -1),"\n")
> #end
>
> Shouldn't the iterations stop when i = 1? What am I doing wrong?
>
>

here  #local i = i + numerator/divisor;

use ; insteed of ,


Post a reply to this message

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