I want to prevent an extra line when a merge item is not present

S

ShadyBradyHat

Using WORD and a template I built, I have an extra line when there is no data
for Address_Line_2. The code is as follows:

{IF {mergefield Address_Line_2}<>"" "{mergefield Address_Line_2}" "")

The help information does not provide anything that I could find on this.
 
G

Graham Mayor

You need to put this conditional field on the end of the previous line (not
on its own line) and add the line feed in the code thus:
{IF {mergefield Address_Line_2}<>"" "
{mergefield Address_Line_2}")


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

ShadyBradyHat

THANKS!

Graham Mayor said:
You need to put this conditional field on the end of the previous line (not
on its own line) and add the line feed in the code thus:
{IF {mergefield Address_Line_2}<>"" "
{mergefield Address_Line_2}")


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top