Conditional Text

T

Treb Sremiulp

Hi,

I have several paragraphs of text in one document. Is it possible to print
paragraphs conditionally? Definining a custom document property with a value
(e.g.: INTERNAL=TRUE) and then print only the paragraphs where a linked
check (like IF INTERNAL=TRUE) meets the criterium.

Or maybe another solution?

Thanks in advance.
-- Treb
 
C

Charles Kenyon

Yes, you would use an IF field which compares a DOCPROPERTY field with a
given value. The syntax of that is:

{ IF { DocProperty "Internal" } = "True" "truetext" "falsetext" }

falsetext is optional.

Field markers {} have to be inserted using Ctrl-F9, not typed.

Remember that if your field is not in the header or footer, it will have to
be updated manually or with a macro when you change the value of the
document property.

If your text is lengthy, you would want to use an AutoText field and put the
text in AutoText. You may want to do that anyway.

For more on fields or AutoText, search on the following page for those
terms:
http://addbalance.com/word/wordwebresourses.htm

Hope this helps.
 

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