Conditional text entries possible in Word 2002?

P

Paul Moloney

I've tried inserting conditional text entries in the my
documents (in Word 2002) using the following kind of field:

{ IF { DOCPROPERTY Platform } = "Windows" {XE "createmq.bat"} { XE
"createmq.sh" } }

(That is, if the document property "Platform" is set to the
value "Windows", then create an index entry for the Windows
script "createmq.bat", else create from for the UNIX script
"createmq.sh")

Reading on Usenet, it seems this construction mightn't work.
Is there a workaround or fix, or another way to do the same
in Word 2002?

Thanks,

P.
 
C

Cindy M -WordMVP-

Hi Paul,

I'd try constructing it like this:

{ XE "{ IF { DocProperty Platform } = "Windows" "createmq.bat"
"createmq.sh" }" }
I've tried inserting conditional text entries in the my
documents (in Word 2002) using the following kind of field:

{ IF { DOCPROPERTY Platform } = "Windows" {XE "createmq.bat"} { XE
"createmq.sh" } }

(That is, if the document property "Platform" is set to the
value "Windows", then create an index entry for the Windows
script "createmq.bat", else create from for the UNIX script
"createmq.sh")

Reading on Usenet, it seems this construction mightn't work.
Is there a workaround or fix, or another way to do the same
in Word 2002?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30
2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 
P

Paul Moloney

Cindy M -WordMVP- said:
Hi Paul,
I'd try constructing it like this:
{ XE "{ IF { DocProperty Platform } = "Windows" "createmq.bat"
"createmq.sh" }" }

That's great - thanks!

P.
 

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