IF fields
Evaluate conditional text
Merge the product data to evaluate the template's IF fields. Each field chooses its true or false text from the associated data value.
Understand the current template
Explore its merge fields, repeating blocks, and nested structure in an interactive template map.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Put business wording in the template
An IF field compares the value of a named merge field with another expression. The template stores both possible results and inserts the appropriate text during the merge.
This keeps conditional wording close to the surrounding document instead of assembling sentences in controller code.
API used
MailMerge.MergeJsonData
How it works
MailMerge resolves the referenced field value, performs the comparison encoded in each IF field, and replaces the field with its true or false result in the output document.