I am writing a form letter in MS Word in which I am trying to have the document auto-populate all pronouns according to the gender of the subject.
I have entered this code:
{IF{MERGEFIELD Gender}=F "She" "He"}
and also this code:
{IF{MERGEFIELD Gender}=F "her" "him"}
The code works in the source document for feminine pronouns, but when I try to merge the form letter with an actual recipient, both fields produce this:
=F
I am not sure how to fix this problem. I have tried splitting the code into separate commands for gender=f
and gender=m
, I have tried adding or removing spaces, I have tried moving =F
inside the {}
brackets.
Please help!
F
), have you tried encapsulating it with quotes?="F"