I’m using the following IF statements in the MS Word template and getting the following results:
Template:
{IF "{MERGEFIELD GRADUATED}" <> "True" "DID NOT GRADUATE" "GRADUATED"}
Output:
{IF "True" <> "True" "DID NOT GRADUATE" "GRADUATED"}
Template:
{IF "{MERGEFIELD CLEARANCETYPE}" <> "" "{MERGEFIELD CLEARANCETYPE}" "NONE" }
Output:
{IF "" <> "" "" "NONE"}
I’m calling doc.UpdateFields(), but it appears that the MERGEFIELD databound items are updating, but the condition isn’t evaluating. I’ve tried “cntrl-A F9” and that doesn’t update the output document. I’ve tried using a more simple version.
Template:
{IF "{MERGEFIELD GRADUATED}" = "False" "DID NOT GRADUATE" }
Output:
{IF "True" = "False" "DID NOT GRADUATE" }
Template:
{IF "{MERGEFIELD CLEARANCETYPE}" = "" "NONE" }
Output:
{IF "" = "" "NONE"}
I’ve been reading through the forums for an answer, but it seems like this should work. There are spaces between the operator and the data fields and the values are quoted.
All of the other mergefield and regions work perfect, just not these IF statements. Any ideas?