How to Prevent Blank Lines from Conditional Mail Merge Bullets
Question details
Remove unwanted empty lines left behind by conditional bullet points during a mail merge when conditions are not met.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Creating a document using mail merge that includes conditional (IF) bullet points.
- Observed behavior
- When the condition evaluates to false, the bullet text is omitted but a blank line still remains, causing unwanted vertical spacing in the final merged document.
Enable nonprinting formatting marks (such as the paragraph symbol ¶) in your document so you can visually identify exactly where the carriage returns are located.
Include Paragraph Marks Inside the IF Field
By moving the paragraph mark (Enter keystroke) inside the quotation marks of the IF field's 'true' condition, the line break will only occur when the condition is met.
When you create a conditional bullet point, the paragraph mark at the end of the line usually sits outside the field code. Even if the IF condition hides the text, the paragraph mark remains visible to Word, generating a blank line. Embedding this mark into the condition resolves the spacing issue.
Press Alt+F9 (or Option+F9 on Mac) to display the underlying IF field codes instead of the resulting text.
Go to the Home tab and click the Pilcrow (¶) icon to reveal hidden paragraph marks and spaces.
Cut the paragraph mark that currently follows your bullet point and paste it inside the quotation marks of the true result within your { IF } field.
Toggle the field codes off by pressing Alt+F9 again, then preview your mail merge results to ensure the blank lines have been successfully eliminated.

Easily Manage Mail Merge Layouts with WPS Office
WPS Writer offers robust mail merge capabilities with full support for advanced field codes. You can effortlessly set up conditional rules to generate perfectly formatted letters, envelopes, and emails without awkward blank spacing.
- 1. Start your mail merge: Open WPS Writer and navigate to the 'Mailings' tab to select your data source and begin your merge setup.
- 2. Insert IF field codes: Set up conditional rules for your bullet points by inserting { IF } field codes directly into the document.
- 3. Adjust paragraph marks: Press Alt+F9 to view field codes and place the paragraph mark inside the true condition's quotation marks.
- 4. Preview results: Click 'View Merged Data' on the Mailings ribbon to preview the layout and verify that no blank lines appear.

Frequently Asked Questions
Why does Word leave a blank line when an IF field condition is false?
Even if the text inside the IF field evaluates to false and is hidden, the paragraph mark (Enter keystroke) at the end of the line often remains outside the field code. The word processor reads this paragraph mark independently, creating an empty line.
How do I view hidden field codes in my document?
You can press Alt + F9 on Windows (or Option + F9 on Mac) to toggle between viewing the raw field codes and their generated final results.
Do I need to use nested IF fields to remove blank lines?
Generally, no. As long as your conditions are independent, simply including the paragraph mark inside the true result quotation marks of a standard IF field is enough to prevent the blank line.
How do I see exactly where my paragraph marks are located?
Go to the Home tab on your ribbon and click the Show/Hide button, which looks like a backward P (¶). This will reveal all nonprinting characters, including spaces, tabs, and paragraph marks.




