Simulate null parameters in Freemarker macros
I'm building a site using Freemarker and have started heavily using macros. I know in Freemarker 2.3 that passing a null value into a macro as a parameter is equivalent to not passing a parameter at all so I've created a global variable called "null" to simulate null checking in my macros: <#assign null="NUL" /> Now in my macros I can do this: <#maco doSomething param1=null> <#if param1 != null> <div>WIN!</div> </#if> </#macro> The problem comes if I want to pass a parameter that isn't a scalar. For instance, passing a List (which in Freemarker is a SimpleSequence) to a macro and checking