Home |
Search |
Today's Posts |
#1
|
|||
|
|||
IF statements always returning the "False" condition
I am working with Word documents that contain several IF statements. The IF
statements are mostly related to whether or not I need the singular or plural words. The if statement looks something like this: { IF {mergefield field11 }="Debtors" "Debtors'" "Debtor's" \*Mergeformat } No matter if field 11 contains Debtors or Debtor, the false condition always shows up in my document. What is going on with this? I have checked the Website for MVP's for answers and also searched the Microsoft site for answers. |
#2
|
|||
|
|||
A field construction that looks exactly like the one that you posted works
fine for me. If you want to email a copy of the document to me, I will take a look at it for you. -- Please respond to the Newsgroup for the benefit of others who may be interested. Questions sent directly to me will only be answered on a paid consulting basis. Hope this helps, Doug Robbins - Word MVP "JCSadie" wrote in message ... I am working with Word documents that contain several IF statements. The IF statements are mostly related to whether or not I need the singular or plural words. The if statement looks something like this: { IF {mergefield field11 }="Debtors" "Debtors'" "Debtor's" \*Mergeformat } No matter if field 11 contains Debtors or Debtor, the false condition always shows up in my document. What is going on with this? I have checked the Website for MVP's for answers and also searched the Microsoft site for answers. |
#3
|
|||
|
|||
It works for me too - you need to check what field11 is actually placing in
the merge, when not in the conditional construction, and not what you expect it to insert. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org JCSadie wrote: I am working with Word documents that contain several IF statements. The IF statements are mostly related to whether or not I need the singular or plural words. The if statement looks something like this: { IF {mergefield field11 }="Debtors" "Debtors'" "Debtor's" \*Mergeformat } No matter if field 11 contains Debtors or Debtor, the false condition always shows up in my document. What is going on with this? I have checked the Website for MVP's for answers and also searched the Microsoft site for answers. |
#4
|
|||
|
|||
Field 11 contains either Debtors or Debtor. I have that field inserted into
the document and it delivers without If statements, r depending on what is contain in the field, Debtors or Debtor. That seems to work out just fine. Thanks for your help. "Graham Mayor" wrote: It works for me too - you need to check what field11 is actually placing in the merge, when not in the conditional construction, and not what you expect it to insert. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org JCSadie wrote: I am working with Word documents that contain several IF statements. The IF statements are mostly related to whether or not I need the singular or plural words. The if statement looks something like this: { IF {mergefield field11 }="Debtors" "Debtors'" "Debtor's" \*Mergeformat } No matter if field 11 contains Debtors or Debtor, the false condition always shows up in my document. What is going on with this? I have checked the Website for MVP's for answers and also searched the Microsoft site for answers. |
#5
|
|||
|
|||
In that case, there is no reason why it should not work as well there as it
does for Doug and me. { IF {mergefield field11 } = "Debtors" "Debtors'" "Debtor's" } I take it you have inserted the field into the condition and not merely typed it and that it is spelled correctly? -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org JCSadie wrote: Field 11 contains either Debtors or Debtor. I have that field inserted into the document and it delivers without If statements, r depending on what is contain in the field, Debtors or Debtor. That seems to work out just fine. Thanks for your help. "Graham Mayor" wrote: It works for me too - you need to check what field11 is actually placing in the merge, when not in the conditional construction, and not what you expect it to insert. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org JCSadie wrote: I am working with Word documents that contain several IF statements. The IF statements are mostly related to whether or not I need the singular or plural words. The if statement looks something like this: { IF {mergefield field11 }="Debtors" "Debtors'" "Debtor's" \*Mergeformat } No matter if field 11 contains Debtors or Debtor, the false condition always shows up in my document. What is going on with this? I have checked the Website for MVP's for answers and also searched the Microsoft site for answers. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to count word from statistic option and exlude.... in Work200 | Microsoft Word Help | |||
Using Hyperlinks in Mail Merge IF...THEN...ELSE Statements | Mailmerge |