Blank Line with If...then...else field

J

jmh117

Hello,

I'm trying to create a document that will have one address block whe
the field Agent in my source document is "self" and two address block
when Agent is not self.

Currently I have the following code for the full address (not using th
address block function as I have two addresses in the document and extr
text that I want included ("c/o" and "Agent for"):

{IF {MERGEFIELD Agent}= "self" "" "c/o {MERGEFIELD Agent", Agent fo
Recipient}
{AgentAdd1}
{AgentAdd2}
{AgentCity \f ", "}{AgentState \f " "}{AgentZip}

The merge properly suppresses the line breaks if there is no data in th
source document, however, if "self" is in the Agent field in the sourc
document, I get a blank line where the "If...then...else" field is an
suppressed lines for the rest of the address block.

For example:

If Ebeneezer Scrooge is Tiny Tim's Agent the following will display:

Tiny Tim's
Address
Block

c/o Ebeneezer Scrooge, Agent for Tiny Tim
One Scrooge Lane
Miser City, Dickens 00000

TEXT OF DOCUMENT

If Tim represents himself (and I need some notation that they are sel
represented), the following will display

Tiny Tim's
Address
Block



TEXT OF DOCUMENT

Any thoughts on how to fix this problem
 

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