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:22:34 EDT (-0400)
  Re: Why does POV always evaluate both expressions with a '&'?  
From: Jaime Vives Piqueres
Date: 27 Sep 2001 16:29:41
Message: <3BB38C39.79060128@ignorancia.org>

> #macro findzero(a, n)
>  #local i = 0;
>  #while(i <= n)
>   #if(a[i] != 0)
>    #declare n = i;       
>   #end
>   #declare i = i + 1;
>  #end
> #end

 Oh! Very fine. Like #break, but better...

-- 
Jaime Vives Piqueres

La Persistencia de la Ignorancia
http://www.ignorancia.org/


Post a reply to this message

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