|
|
On 2/6/2018 8:10 AM, clipka wrote:
> 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)
>
Interesting, thanks.
Mike
Post a reply to this message
|
|