View Single Post
 
Old 09-12-2015, 08:10 PM
DougMVP DougMVP is offline Windows 7 32bit Office 2010 32bit
Advanced Beginner
 
Join Date: Nov 2013
Posts: 50
DougMVP will become famous soon enough
Default

You most certainly can use an If...then...Else field to insert the contents of a MergeField

For your example, insert the following mergefields and text

«OKtoPublish» = True «PhoneNumber» ""

then, select the above mergefields and text and press CTRL+F9 which will enclose it in a pair of field delimiters

{ «OKtoPublish» = True «PhoneNumber» "" }

Then insert the word IF as shown below

{ IF «OKtoPublish» = True «PhoneNumber» "" }

Then press ALT+F9 twice to toggle of the display of the field codes in the document.

Note: You MUST use CTRL+F9 to insert the field delimiters. It will NOT work if you insert the directly by the use of the { and } keys.
Reply With Quote