title: If-else statement inside a parameter of a freemarker macro?
body: <p>Is it possible to have an if/else statement inside a parameter of a freemarker macro?</p>
  
  <p>I now have:</p>
  
  <pre><code>[#if myForm.id==0]
  [#assign action = "add"]
  [#else]
  [#assign action = "change"]
  [/#if]
  [@printForm action  /]
  </code></pre>
  
  <p>This is quite a lot of code lines, is it possible to shorten this a bit by putting the if/else construct as a parameter, something like:</p>
  
  <pre><code>[@printForm [if]add[#else]change[/#if]  /]
  </code></pre>