Handling condition in freemarker docx template

Certified Associate Developer

We have two fields drillTime and drillDateTime.

Condition:

If there is a value in drillTime print drillTime or if it is null

Print drillDateTime

[#if dmd.drillTime??]
${dmd.drillTime!""}
[#elseif dmd.drillDateTime??]
${dmd.drillDateTime??}

Above we used in template but its not working correctly.

Its printing drillTime if there is a value in it  and if it is null its not printing drillDateTime.

Note: drillTime is text and drillDateTime is date and time type.

 

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data