R
rtrsr
I've had no problems creating and using simple { IF Expression1 Operator
Expression2 TrueText FalseText } merge codes but now I've plowed into a
stump.
This time, I want to test TWO conditions. Here's a diagram of what I'm
trying to do. I acknowledge it's not rocket science but I can't get it to
lift off the pad.
===============
IF
"{MERGEFIELD FileCustomField15}" = "FALSE"
***and***
{MERGEFIELD FileCustomField7} <> {MERGEFIELD FileCustomField7}
THEN
"[... text passage #1]"
ELSE
"[... text passage #2]"
================
I understand from the Help Screens that the way to do this is via the
COMPARE code. Well, it isn't working for me. It's probably a matter of not
putting "quotes" in the right place or otherwise not holding my mouth just
right when I type in the code, but after over two hours of beating on it, I
thought someone out here could give me a few pointers.
Here's what I've got (that doesn't work):
{IF {=AND ({COMPARE "{MERGEFIELD FileCustomField15}" = "FALSE"},
{COMPARE{MERGEFIELD FileCustomField7} <> {MERGEFIELD FileCustomField7} } ) }
= 1 "... text passage #1" "... text passage #2"}
I've followed the style in Word's Help Screen for the COMPARE code --
precisely I think. But I still get an "Error - Missing Test Condition."
I'm sure the error of my ways will be immediately obvious to one of you.
Can you help?
NOTE: {MERGEFIELD FileCustomField15} is a "string variable" while
{MERGEFIELD FileCustomField7} and MERGEFIELD FileCustomField7} are both
numerics.
Thanks!
Rick
Expression2 TrueText FalseText } merge codes but now I've plowed into a
stump.
This time, I want to test TWO conditions. Here's a diagram of what I'm
trying to do. I acknowledge it's not rocket science but I can't get it to
lift off the pad.
===============
IF
"{MERGEFIELD FileCustomField15}" = "FALSE"
***and***
{MERGEFIELD FileCustomField7} <> {MERGEFIELD FileCustomField7}
THEN
"[... text passage #1]"
ELSE
"[... text passage #2]"
================
I understand from the Help Screens that the way to do this is via the
COMPARE code. Well, it isn't working for me. It's probably a matter of not
putting "quotes" in the right place or otherwise not holding my mouth just
right when I type in the code, but after over two hours of beating on it, I
thought someone out here could give me a few pointers.
Here's what I've got (that doesn't work):
{IF {=AND ({COMPARE "{MERGEFIELD FileCustomField15}" = "FALSE"},
{COMPARE{MERGEFIELD FileCustomField7} <> {MERGEFIELD FileCustomField7} } ) }
= 1 "... text passage #1" "... text passage #2"}
I've followed the style in Word's Help Screen for the COMPARE code --
precisely I think. But I still get an "Error - Missing Test Condition."
I'm sure the error of my ways will be immediately obvious to one of you.
Can you help?
NOTE: {MERGEFIELD FileCustomField15} is a "string variable" while
{MERGEFIELD FileCustomField7} and MERGEFIELD FileCustomField7} are both
numerics.
Thanks!
Rick