POV-Ray : Newsgroups : povray.general : Empty value for variable : Re: Empty value for variable Server Time
29 Mar 2024 08:13:31 EDT (-0400)
  Re: Empty value for variable  
From: jr
Date: 4 Feb 2023 05:45:00
Message: <web.63de36ff5d560c7488a828ca6cde94f1@news.povray.org>
hi,

"yesbird" <nomail@nomail> wrote:
> Is there a way to assign an empty value to variable, using something like 'None'
> in Python or NULL in C ? I would like to use it while passing parameters to
> macros, for more compact notation.
> Can not find any info in docs about it.

not that I can think of[*].  as a workaround, if the argument is optional and
not supplied, you can '#if (!defined(local.varName))' in the macro, to check, if
not supplied == NULL?


[*] however, two .. misfires already, this morning :-(



regards, jr.


Post a reply to this message

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