Conditional text entries possible in Word 2002?

  • Thread starter Thread starter Paul Moloney
  • Start date Start date
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.
 
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 :-)
 
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.
 
Back
Top