We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Conditional Blocks and Mail Merge using Mustache Template Syntax

I am following the documentation under Conditional Block exactly:
https://docs.aspose.com/display/wordsnet/About+Mail+Merge

The field is replaced, as is: { IF “{{ GENDER }}” = “MALE” “true text” “false text” } =>

OUTPUT: { IF “{{ MALE }}” = “MALE” “true text” “false text” }.

With the conditional block, I am expecting the output to be “true text”

I have attached a sample program.

MailMerge.zip (9.2 KB)

@jason2019,

You need to use actual IF field. I have attached the correct template file here for your reference:
UseOfifelseMustacheSyntax.zip (9.2 KB)

@jason2019,

You can toggle to view the field codes by pressing ALT+F9.

A post was split to a new topic: Mail Merge using Plain Text Markers, IF-ELSE Mustache Template Syntax