Re: How to still get the Key-Value pair even though Value in the Hash is null

ven12344 <[email protected]> Tue, 16 Sep 2014 07:05:41 -0700 (PDT)
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi Daniel,

Thanks for replying. But I did what you are asking me to do, yet it is not
working

I made changes like this

<#local map = {} >

<#if titleIndex < titles?size>
 <#if titles[titleIndex]?? >
  <#local map = map +  {"${chapter}" : "${titles[titleIndex]}"} >
 <#else>
  <#local map = map +  {"${chapter}" : ""} >
 </#if>
</#if>

Please let me know if anything is wrong. Thanks.



--
View this message in context: http://freemarker.624813.n4.nabble.com/How-to-still-get-the-Key-Value-pair-even-though-Value-in-the-Hash-is-null-tp4655272p4655276.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk