J
JASon
I've figured out how to use the COMPARE functionality in a Word merge:
{ COMPARE "{ MERGEFIELD Name }" = "*Smith" } --- Someone with the last name
of Smith
This returns a 1 if true, 0 if false. '*' is the multiple-character
wildcard, and '?' is the single-character wildcard. The problem I'm having
is it doesn't seem to be able to handle 2 '*'s. There is a chance that this
'Smith' could not be at the end and Name would look like "John Smith, Jr." or
"Jane Smith-Harris".
I've tried this:
{ COMPARE "{ MERGEFIELD Name }" = "*Smith*" }
but it always returns 0.
Is there some kind of workaround to this?
Any help is appreciated.
JASon
{ COMPARE "{ MERGEFIELD Name }" = "*Smith" } --- Someone with the last name
of Smith
This returns a 1 if true, 0 if false. '*' is the multiple-character
wildcard, and '?' is the single-character wildcard. The problem I'm having
is it doesn't seem to be able to handle 2 '*'s. There is a chance that this
'Smith' could not be at the end and Name would look like "John Smith, Jr." or
"Jane Smith-Harris".
I've tried this:
{ COMPARE "{ MERGEFIELD Name }" = "*Smith*" }
but it always returns 0.
Is there some kind of workaround to this?
Any help is appreciated.
JASon