If Condition is not working in Mustache Template

Hi,
if condition with Mustache Syntax from template is not working.
i referred the example from here Mail Merge Template from Mustache Syntax|Aspose.Words for Java

Please find the attachment for my complete application and template and out put file as well.

Please suggest, where am i doing the mistake?Issue-ifCondition-mustache.zip (61.0 KB)

@Rakesh_M For conditional blocks you you should use regular MS Word IF fields.
Press Alt+F9 to see field codes. Mustache syntax can be applied only to merge field themselves but not to the condition fields.
You can insert IF field either from the MS Word dialog:

or by pressing Ctrl+F9 in MS Word and typing field code.

Thanks, It is working.

1 Like