POV-Ray : Newsgroups : povray.general : #for loop example? : Re: #for loop example? Server Time
29 Jul 2024 00:32:56 EDT (-0400)
  Re: #for loop example?  
From: posfan12
Date: 30 Aug 2013 00:40:00
Message: <web.5220210c2fe6256c41a177270@news.povray.org>
"posfan12" <nomail@nomail> wrote:
> Could someone please post an example of a #for loop? There is none in the docs.
> (Which should be fixed, too.)
>
>
> Mike

Never mind I figured it out. Here is an example:

#for (j, 0, 4)
 #debug concat("j = ",str(j,0,0),"\n")
#end

should result in:

j = 0
j = 1
j = 2
j = 3
j = 4


Post a reply to this message

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