Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Using Operators with Field Codes
I have a precedent which has:
{ set granteemf { fillin "Is the Grantee Male or Female? [type m or f]}} { set granteesp { fillin "Is the Grantee Singular or Plural [type s or p]}} I would like to have an If statement combining the two, i.e. If granteemf = f AND granteesp = s . . . Can I do that? Brenda |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Using Operators with Field Codes
The safest general-purpose way for multiple questions is
{ IF "{ granteemf \*Upper }" = "F" "{ IF "{ grannteesp \*Upper }" = "S" "both F and S" "M or P" }" "M or P" } But you could also consider something like { IF "{ granteemf \*Upper }&{ grannteesp \*Upper }" = "F&S" "both F and S" "M or P" } (You need something in the middle of the two results because { IF "{ granteemf \*Upper }{ grannteesp \*Upper }" = "FS" "both F and S" "M or P" } would result in "both F and S" if the user responded FS to either the M/F question or the S/P question and left the other one blank) -- Peter Jamieson http://tips.pjmsn.me.uk "Brenda A. Reid" wrote in message ... I have a precedent which has: { set granteemf { fillin "Is the Grantee Male or Female? [type m or f]}} { set granteesp { fillin "Is the Grantee Singular or Plural [type s or p]}} I would like to have an If statement combining the two, i.e. If granteemf = f AND granteesp = s . . . Can I do that? Brenda |
#3
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Using Operators with Field Codes
This certainly did the trick. Am forever grateful . . . Thanks.
Brenda "Peter Jamieson" wrote in message ... The safest general-purpose way for multiple questions is { IF "{ granteemf \*Upper }" = "F" "{ IF "{ grannteesp \*Upper }" = "S" "both F and S" "M or P" }" "M or P" } But you could also consider something like { IF "{ granteemf \*Upper }&{ grannteesp \*Upper }" = "F&S" "both F and S" "M or P" } (You need something in the middle of the two results because { IF "{ granteemf \*Upper }{ grannteesp \*Upper }" = "FS" "both F and S" "M or P" } would result in "both F and S" if the user responded FS to either the M/F question or the S/P question and left the other one blank) -- Peter Jamieson http://tips.pjmsn.me.uk "Brenda A. Reid" wrote in message ... I have a precedent which has: { set granteemf { fillin "Is the Grantee Male or Female? [type m or f]}} { set granteesp { fillin "Is the Grantee Singular or Plural [type s or p]}} I would like to have an If statement combining the two, i.e. If granteemf = f AND granteesp = s . . . Can I do that? Brenda |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Field codes: MergeField field RTF format problem | Mailmerge | |||
Saving word document with field results not field codes | Microsoft Word Help | |||
Can string operators be used? | Mailmerge | |||
I can't see anything but codes or field codes...help!!!! | Microsoft Word Help | |||
I can't see anything but codes or field codes...help!!!! | Microsoft Word Help |