Hello,
I would recommend you to check
this article about macros. You can also try to use the "(default) " keyword in the macro, for example:
'{%parameter|(default)2001-01-01%}'
This displays the date "2001-01-01" if the parameter is null.
Best regards,
Boris Pocatko