how do i create conditional text in Word docs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know how to do this in another application, I just can't seem to find a way
for doing this in Word. Any suggestions? Ideas?
 
Hi Mary

It depends what you're trying to do. Word does include an IF field which you
can use to provide two different bits of content depending on a true/false
test. The fields can be nested, and the content can be drawn from other
files or AutoText, using other fields, so it's possible to build some
complex rules - but equally it can be very complex to edit. (Despite initial
appearances from Word Help, this field isn't just relevant to MailMerge -
the test can be the value of a document property, for instance, which you
can use to toggle conditions.) This method is useful where it can be set up
ahead of time in a template - to provide different boilerplate depending on
various user choices, for instance.

A simpler method more suitable for "post hoc" separation of content is to
use font colours, font attributes such a double underline, or character
styles (whatever doesn't conflict with other formatting requirements) to
mark the conditional text. Then use pre print macros to convert unwanted
content to "hidden" format, and wanted content to ordinary formatting.
(Character style is best if you can use it, as you only have to change style
definitions, rather than lose the mark-up itself. Actual font changes have
to be done in throw-away copies.)
 
Back
Top