Multiple fields in an IF statement

M

Mary

Is it possible to have multiple fields print when an If statement is
processed?

{IF {MERGEFIELD DGCOLD2}="" " " {MERGEFIELD DGCOLD2} {MERGEFIELD
PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2}
}

This only prints the first filed. Do I have condition each field? Or
is there an easier way?
 
M

macropod

Hi Mary,

Yes, you can and you nearly had it working. Try:
{IF {MERGEFIELD DGCOLD2}<> "" "{MERGEFIELD DGCOLD2} {MERGEFIELD PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2}"}
or
{IF {MERGEFIELD DGCOLD2}= "" "" "{MERGEFIELD DGCOLD2} {MERGEFIELD PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2}"}
 

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