POV-Ray : Newsgroups : povray.binaries.scene-files : Simulated urbanism macro scene: version 2013.04.08 : Re: Simulated urbanism macro scene: version 2013.04.08 Server Time
27 Apr 2024 17:02:35 EDT (-0400)
  Re: Simulated urbanism macro scene: version 2013.04.08  
From: Thomas de Groot
Date: 8 Apr 2013 10:17:36
Message: <5162d180$1@news.povray.org>
On 8-4-2013 15:38, nimda wrote:
> IMHO the #for loop goes to the end value if reaches it e.g.:
> #for (I, 1, 10)
> #warning Str(I)
> #end
> will show all the numbers from 1 up to 10, but  :
> #for (I, 1, 10, 2)
> #warning Str(I)
> #end
> will only show 1, 3, 5, 7, 9 because the 11 that follows is greater than 10.

Yes. However, in my code #for (Counter, 1, 10) with default step=1, the 
Counter only shows the numbers 1 to 9...
I am sure I am missing something obvious here :-(

>
> On the other hand a #while (I<10) statement will only show the numbers up to 9
> because the symbol "<" means *strictly* smaller than. If you want 10 to show up
> you should use #while (I<=10).

Of course, but there lies not my problem.

Thomas


Post a reply to this message

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