Insert a Line Break for a Blank Mail Merge Field in Word 2016
Question details
Insert a real line break or paragraph mark when a Word mail merge field has no value.

- Product
- Microsoft Word 2016
- Device & OS
- not provided
- Scenario
- A mail merge document needs a conditional break based on whether a merge field is empty.
- Observed behavior
- Typing ^l or ^p in an If...Then...Else rule inserts those characters instead of a break.
Connect the document to its mail merge data source and identify the exact name of the field to test. In Word for Windows, use Alt+F9 to display field codes and Ctrl+Shift+8 to show formatting marks.
Place a Real Break Inside a Word IF Field
Use this method when the rule editor prints ^l or ^p instead of inserting a break.
The example below inserts a break for a blank field. For a populated field, it inserts the field value followed by a break. The [BREAK] markers are instructions, not text to leave in the document.
Place the cursor where the conditional output should appear. In Word for Windows, press Ctrl+F9 to insert the outer field braces, then press Alt+F9 if needed to show field codes.
Inside the outer braces, construct this pattern: { IF "{ MERGEFIELD Address2 }" = "" "[BREAK]" "{ MERGEFIELD Address2 }[BREAK]" }. Replace Address2 with your data source field name. Use Ctrl+F9 for each nested MERGEFIELD brace pair; do not type any field braces manually.
Replace each [BREAK] marker with an actual break inside its quoted result: press Enter for a paragraph mark or Shift+Enter for a manual line break. Do not type ^p or ^l.
Select the IF field and press F9 to update it. Press Alt+F9 to return to field results, then choose Mailings > Preview Results and move through records with blank and populated values.

Work with Mail Merge Documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for editing Word-compatible documents and moving existing files into a new workflow. It does not repair Microsoft Word's IF field behavior.

Frequently Asked Questions
Why does Word print ^p or ^l in my mail merge rule?
Those character sequences are not converted into breaks in the rule result. Edit the IF field and insert a real paragraph mark with Enter or a manual line break with Shift+Enter inside the quoted result.
Can I type the braces around a Word field?
No. In Word for Windows, press Ctrl+F9 to insert each pair of field braces, including the braces around nested MERGEFIELD fields.
How can I see the IF and MERGEFIELD codes?
In Word for Windows, press Alt+F9 to toggle between field codes and results. Press Ctrl+Shift+8 to show or hide paragraph marks and other formatting marks.
How do I check the result for both blank and filled records?
Select Mailings > Preview Results, then use the record navigation controls to view records with and without a value in the tested field.




