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

Daniel Dekany <[email protected]> Tue, 16 Sep 2014 21:10:54 +0200
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
For starters, if `titleIndex < titles?size` then
`titles[titleIndex]??` will be always true.

-- 
Thanks,
 Daniel Dekany


Tuesday, September 16, 2014, 4:05:41 PM, ven12344 wrote:

> 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
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user


------------------------------------------------------------------------------
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