POV-Ray : Newsgroups : povray.general : #for loop example? : Re: #for loop example? Server Time
29 Jul 2024 06:15:55 EDT (-0400)
  Re: #for loop example?  
From: posfan12
Date: 31 Aug 2013 05:30:01
Message: <web.5221b72e2fe6256c41a177270@news.povray.org>
James Holsenback <nom### [at] nonecom> wrote:
> On 08/29/2013 11:38 PM, posfan12 wrote:
> > Could someone please post an example of a #for loop? There is none in the docs.
> > (Which should be fixed, too.)
>
> yikes ... i don't think the syntax diagram could be /any/ clearer
> http://wiki.povray.org/content/Reference:Conditional_Directives#The_for_Directive

The docs weren't clear if one had to add #local or #declare before the
identifier, and I was confused regarding the End parameter - since most
programming languages use an inequality (as does POVray's #while statement).

Thanks for updating the wiki. One additional suggestion I'd make is to also
state what the example code is supposed to /produce/. I.e. a series of spheres
arranged evenly around a circle.


Mike


Post a reply to this message

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