View Single Post
  #1   Report Post  
Rich
 
Posts: n/a
Default Imbedded MERGEFIELD in IF/ELSE/THEN field

Via MS-Word 2000, I'm trying to create a mail-merge address label template
which will print the country name for a non-USA address, or will print the
Postnet Barcode for the ZipCode for a USA address.

I've attempted to create an IF/ELSE/THEN field as follows:

{ IF {MERGEFIELD country } = "USA" "{ BARCODE { MERGEFIELD zipcode} \U }" "{
MERGEFIELD country }"}

When I merge the data, it performs the IF test properly, and also properly
prints the country name for the non-USA entries. However, I can't seem to
get the USA portion of the IF test to work properly -- rather than printing
the barcode for the associated zipcode, it just leaves it blank.

Is this sort of nesting/imbedding not capable?