View Single Post
 
Old 04-25-2017, 02:45 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Sure, you can evaluate a field's content, but you haven't really given us much to go on. Basically, you'd use either an IF field or a Formula field. For example:
{IF{MERGEFIELD MyField}= 1 "Text for True result" "Text for False result"}
or:
{IF«MyField»= 1 "Text for True result" "Text for False result"}
for the conditional display of some text.

Alternatively, you might use:
{={MERGEFIELD MyField}*45+15}
or:
{=«MyField»*45+15}
to display 60 when 'MyField' = 1, 15 when 0.

Note: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues. Likewise, you can't type or copy & paste the chevrons (i.e. '« »') - they're part of the actual mergefields, which you can insert from the 'Insert Merge Field' dropdown. The spaces represented in the field construction are all required.

I suggest you also have a read of the Mailmerge Tips and Tricks 'Sticky' thread at the top of this forum:
https://www.msofficeforums.com/mail-...ps-tricks.html

PS: I note that I've referred you to the Mailmerge Tips and Tricks 'Sticky' thread, and to other resources before: https://www.msofficeforums.com/mail-...-its-even.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote