Nested If statments in word


Joined
Aug 17, 2012
Messages
3
Reaction score
0
Please can someone help me. I am trying to use if statements in word with no sucess.

I have an address block where address2 and address3 are sometime populated and sometimes not. So I want to say if address2 = " " then skip, If address3 " " then just display address2. If both address2 and address3 are not blank then display address2, address3. With a comma separating them.

This is what I have so far:
{if { MERGEFIELD ADDRESS3} = " " "{MERGEFIELD ADDRESS2}" "{MERGEFIELD ADDRESS2} {MERGEFIELD ADDRESS3}"}


I tried to add the comma:
{if { MERGEFIELD ADDRESS3} = " " "{MERGEFIELD ADDRESS2}" "{MERGEFIELD ADDRESS2}"","" {MERGEFIELD ADDRESS3}"}


But this doesn't work at all.



I haven't even got to the skip bit yet


Please can someone help


Thanks
Sarah
 
Ad

Advertisements

Ad

Advertisements


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

Similar Threads

Bird's nests 9
Nest vs Hive? 8

Top