Re: summary about conditional text in Word

Subject: Re: summary about conditional text in Word
From: dmbrown -at- brown-inc -dot- com
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Wed, 30 Jan 2002 18:32:32 -0800

Chuck Martin wrote:
> to do conditional text in Word, where sections of text would have to
> have multiple conditions.
> The simple answer: it can't be done.

I believe that's incorrect. You *can* use multiple conditions to control the
presence or absence of text by "nesting" IF fields:

{ IF bookmarkA = valueX "{ IF bookmarkB = valueY "both-A-and-B" "A-but-not-B" }"
{ IF bookmarkB = valueY "not-A-but-B" "neither-A-nor-B" }

If your conditional text needs to include paragraph marks and section marks,
put it in separate files:

{ IF bookmark = value "{ INCLUDETEXT value.doc }" "{ INCLUDETEXT not-value.doc }" }

I've used this technique in several versions of Word. I just verified the syntax
in Word 97.


David M. Brown - Brown Inc.
dmbrown -at- brown-inc -dot- com

A V A I L A B L E N O W !

HTML Indexer 3, still the easiest way to create and maintain real
back-of-the-book indexes for web sites and other HTML documents.

Now including options for HTML Help and JavaHelp indexes, too!


Collect Royalties, Not Rejection Letters! Tell us your rejection story when you
submit your manuscript to iUniverse Nov. 6 -Dec. 15 and get five free copies of
your book. What are you waiting for?

Have you looked at the new content on TECHWR-L lately?
See and check it out.

You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit for more resources and info.

Previous by Author: Re: Why do you need a nav system?
Next by Author: Re: summary about conditional text in Word
Previous by Thread: summary about conditional text in Word
Next by Thread: Re: summary about conditional text in Word

What this post helpful? Share it with friends and colleagues:

Sponsored Ads

Sponsored Ads