POV-Ray : Newsgroups : povray.general : Why does POV always evaluate both expressions with a '&'? : Re: Why does POV always evaluate both expressions with a '&'? Server Time
7 Aug 2024 17:25:52 EDT (-0400)
  Re: Why does POV always evaluate both expressions with a '&'?  
From: Micha Riser
Date: 27 Sep 2001 14:15:02
Message: <taqvo9.a05.ln@micha.riser>
Chaps wrote:

> what is the use of goon?
> 
> I would just write:
> 
>  #declare i=0;
>  #while (i<n)
>          #if (a[i]=0) // this will not be evaluated if i = n
>                  #declare i=i+1;
>          #end
>  #end
> 

This does not work... if a[i]!=0 for some i<n then the while-loop will go 
on forever.


Post a reply to this message

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