POV-Ray : Newsgroups : povray.advanced-users : ifdef() : Re: ifdef() Server Time
28 Jul 2024 20:28:04 EDT (-0400)
  Re: ifdef()  
From: Thorsten Froehlich
Date: 3 Mar 2004 12:19:44
Message: <404613b0@news.povray.org>
In article <4046089f$1@news.povray.org> , "Jaap Frank" <jjf### [at] xs4allnl> 
wrote:

> There is no problem with assigning a value but testing is obviously not
> possible.

You cannot test if an array element is defined, that does not make sense at
because the array is either defined or not, independent of the elements.
The manual at no point claims what you want to do would be possible.  If you
want to know if a specific element exists, you should use the array size,
and simply not add elements that do not contain the information you do not
want to store in the first place.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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