POV-Ray : Newsgroups : povray.advanced-users : Undefined variables : Re: Undefined variables Server Time
13 Jun 2024 20:08:29 EDT (-0400)
  Re: Undefined variables  
From: Alain
Date: 5 Feb 2018 17:58:31
Message: <5a78e197$1@news.povray.org>
Le 18-02-05 à 17:47, Mike Horvath a écrit :
> I am trying to create a macro:
> 
>    #macro BlurredReflection(InPigment, InFinish, InNormal)
>      ...
>    #end
> 
> But I don't want to *always* pass a value to the macro. Is there a way 
> to pass a "null" or "nil" value to the macro, and then check for it 
> using a conditional statement?
> 
> Thanks.
> 
> Mike

Not any that I'm aware of.
What you can do is define the macro with only a single, or no, parameter 
and use some global variable and #if statements to assign defaut values 
it any variable is not already defined.


Post a reply to this message

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