Use an IF Field in Word 2016 Without Mail Merge
Question details
Use an IF field in Word 2016 to compare document content and display a conditional result without mail merge.

- Product
- Microsoft Word 2016
- Device & OS
- not provided
- Scenario
- The user wants to compare bookmarked text or a numeric value with a constant in a regular Word document.
- Observed behavior
- The IF field should display one result when the comparison is true and another when it is false.
Identify the text or value you want to test and decide what the document should display for each result. The keyboard shortcuts below apply to Word 2016 on Windows.
Compare Bookmarked Text Using an IF Field
Use a bookmark and a nested REF field to test document text without a mail merge.
An IF field compares two expressions and displays the true or false result. In this example, a REF field supplies the text stored in a bookmark named Status.
Select the text to test, such as Approved. Go to Insert > Bookmark, enter Status as the bookmark name, and select Add.
Place the cursor where the result should appear and press Ctrl+F9 to insert a pair of field braces. Type IF followed by a space inside the braces.
Inside the outer field, after IF, press Ctrl+F9 again and type REF Status inside the new braces. Then, after the nested field, type = "Approved" "Ready" "Pending". The complete code should read { IF { REF Status } = "Approved" "Ready" "Pending" }, with both pairs of braces inserted by Word.
Select the IF field and press F9 to update it. Press Alt+F9 to toggle field codes if needed; the field displays Ready when Status contains Approved, and Pending otherwise.

Edit Word Documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its format compatibility makes it easy to move existing files into WPS Writer; check complex fields when migrating.

Frequently Asked Questions
Can I use an IF field without mail merge?
Yes. In Word 2016, an IF field can compare bookmarked document content with a constant without connecting to a mail-merge data source.
Why do typed braces not work as a Word field?
Word requires special field braces rather than ordinary typed braces. On Windows, press Ctrl+F9 for each pair, including the nested REF field.
How do I see or edit the IF field code?
Press Alt+F9 in Word on Windows to toggle between field codes and their results. Edit the code, then select the field and press F9 to update it.
Can an IF field compare numbers?
Yes. An IF field can compare a numeric expression with a constant using an operator such as =, <, or >. Insert the field with Ctrl+F9 and supply the comparison and the true and false results.




