|
|
Am 05.02.2018 um 23:47 schrieb Mike Horvath:
> 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?
In the new versions, you can use e.g.
#macro Fnord(A, optional B, C)
#ifdef(local.B)
#debug "Got a value for B.\n"
#else
#debug "B was left empty.\n"
#endif
#end
Fnord(A,,C)
Post a reply to this message
|
|