If statements and blank lines

M

Max

Would like to have some If statements where if Value1=0, then Field1 does not
print and blank line is suppressed.

What I have now is {IF {MERGEFIELDValue1}=0 "<<Field1>>"} and this does not
seem to be working.

Thanks in advance.
 
D

Doug Robbins - Word MVP

{ IF { MERGEFIELD Value1 } = 0 "{ MERGEFIELD Field2 }" "{ MERGEFIELD
Field1 }[Enter]
{ MERGEFIELD Field2 }" }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
M

Max

Doug,
That does help. How do I get the [Enter] into the expression - do I just
type it or is there somewhere I can select it from? Also, can I do TAB the
same way?
Thanks in advance.

Doug Robbins - Word MVP said:
{ IF { MERGEFIELD Value1 } = 0 "{ MERGEFIELD Field2 }" "{ MERGEFIELD
Field1 }[Enter]
{ MERGEFIELD Field2 }" }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

Max said:
Would like to have some If statements where if Value1=0, then Field1 does
not
print and blank line is suppressed.

What I have now is {IF {MERGEFIELDValue1}=0 "<<Field1>>"} and this does
not
seem to be working.

Thanks in advance.
 
D

Doug Robbins - Word MVP

Just use the respective keys on the key board for the [Enter] or a [Tab]

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

Max said:
Doug,
That does help. How do I get the [Enter] into the expression - do I just
type it or is there somewhere I can select it from? Also, can I do TAB
the
same way?
Thanks in advance.

Doug Robbins - Word MVP said:
{ IF { MERGEFIELD Value1 } = 0 "{ MERGEFIELD Field2 }" "{ MERGEFIELD
Field1 }[Enter]
{ MERGEFIELD Field2 }" }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

Max said:
Would like to have some If statements where if Value1=0, then Field1
does
not
print and blank line is suppressed.

What I have now is {IF {MERGEFIELDValue1}=0 "<<Field1>>"} and this does
not
seem to be working.

Thanks in advance.
 

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