Example 1 shows how to remove paragraphs which contain merge fields but none of those fields was
actually merged. Field is considered to be merged if its data source value is defined, not null and not
empty string.
Start of Example 1
Header: My header
Second choice: I have chosen second choice.
End of Example 1
Example 2 shows how to remove table rows which contain merge fields but none of those fields was
actually merged. This is useful if you are using table to arrange field labels and actual fields like in the
following example.
Start of Example 2
Name: John Doe
Email: [Link]@[Link]
Country: USA
End of Example 2
Example 3 shows how to remove mail merge range which contains merge fields but none of those fields
was actually merged. This is useful if you also want to delete additional content before, after or in the
middle of merge field paragraphs, like Note paragraph in the following example.
Start of Example 3
Number of items: 2
Header: My header 1
Content: My content 1.
Second line of my content 1.
Note: This is some note that goes after every header / content pair.
Header: My header 3
Content: My content 3.
Second line of my content 3.
Note: This is some note that goes after every header / content pair.
End of Example 3