Concatenation with assign operator

anjibman <[email protected]> Fri, 12 Jul 2013 14:33:54 -0700 (PDT)
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi All,

What will be easy way to do this in freemarker

if(someValue == null) {
     result = loc1Path + defaultValue;
}
else {
   result = loc2Path + someValue;
}

I can have like this free marker 

<#assign result = someValue ! defaultValue/>

but did't find a easy way to concatenate path.

Any suggestion?




--
View this message in context: http://freemarker.624813.n4.nabble.com/Concatenation-with-assign-operator-tp4654636.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk