Short form of if..else

anjibman <[email protected]> Tue, 6 Aug 2013 13:56:44 -0700 (PDT)
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi All,

What is the short form of
<#if myDTO.field??>
   ${myDTO.filed?size}
<#else>
   0
<#/if>

Right now I have ${myDTO.field ! "0"} which *doesn't* print size if
myDTO.field is not NULL.

 



--
View this message in context: http://freemarker.624813.n4.nabble.com/Short-form-of-if-else-tp4654720.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk