POV-Ray : Newsgroups : povray.general : #ifdef using a string expression? : Re: #ifdef using a string expression? Server Time
9 May 2024 03:49:01 EDT (-0400)
  Re: #ifdef using a string expression?  
From: Kenneth
Date: 11 Apr 2023 10:50:00
Message: <web.643572cd98df09c99b4924336e066e29@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
>
> "Kenneth" <kdw### [at] gmailcom> wrote:
>
> >  ...
> > For the first line, a simpler  #if(#ifdef(AA)) does not work either, nor does
> > #if(#ifdef(AA)=true))
> >
> > Any suggestions or comments?
>
> suggestion.  write '#if(defined(AA) & defined(BB))'  (ie both exist)
>

Yes, that's a great workaround! Thanks. I had forgotten about the  'defined'
function, as I don't use it very often.


Post a reply to this message

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