Word handles this with a field, and the syntax is fairly close to what you
wrote. You can choose an IF field in the Insert > Field dialog, or press
Ctrl+F9 to insert an empty set of field braces and write the code yourself.
Within the braces, the code should look like
IF cond "xxx" "yyy"
That is, you drop the =true part and the else, and put quotes around the
displayable text. The xxx will display if the condition is true, and the yyy
will display if the condition is false. You could also omit the "yyy" from
the code, and then the field will display nothing if the condition is false.
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.