I can't get my IF field to work !

R

Roger Ottaway

I have WORD2002 document on WinXP. It has a number of fill-in fields. One of
the fields can have either of two options input, for example either black or
white. I want to have a second IF field which adds words conditional on the
input. For example, if "black" was input, then add "as night". Alternatively
if "white" was input, then add "as a sheep".



I have put in an IF statement, but it won't work. It is not a mail merge
document, just an ordinary document with a number of fill-in fields. How can
I reference the fill-in field into an IF statement?



Any help will be appreciated . Roger
 
P

Peter Jamieson

When you use FILLIN fields, you either have to use them directly, or save
their results. So you might use

{ SET A { FILLIN } }

{ REF A }{ IF "{ REF A }" = "black"
" as night"
"{ IF "{ REF A }" = "white" " as a sheep" "?" }" }

Or you could use ASK fields which assign a bookmark name to the result
without the need for a SET field.
 

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