Using function IF in WORD 2003

D

dolezelt

Why the following example does not work?

Example:
Bookmark "town" has value "Pasco"
{IF town = Prague "Not true" "{IF town = Pasco "True" " "} "}

The outcome of this function is "{IF town = Pasco " but I am expecting
outcome "True". That means the word does not take into account another nested
function IF.

I am trying to use nested function "If" because I saw this example in Word
2003 help where nested If is used (I thought that it will work):

{IF {MERGEFIELD Město} = "Brno" "Obyvatelům Brna náleží speciální sleva."
"{IF {MERGEFIELD Město} = "Hořovice" "Obyvatelům Hořovic náleží speciální
sleva." " "} "}

Any solution to makes it work?
 
M

macropod

Hi dolezelt,

Try:
{IF{Town}= "Prague" "Not true" {IF{Town}= "Pasco" "True"}}

Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste
them from this message.
 

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