![]() |
Advanced Merge - {IF BLANK} Syntax |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Solutions: The {IF BLANK} statement is used in macro and merge functions. The following explains the use of the {IF BLANK} command with a primary file. If a customer is merging from a secondary file which has fields that may be blank and has tried using the {FIELD}1?~ statement which has proved unsatisfactory, you may wish to use the {IF BLANK} statement as follows: Merging Several Fields On One Line Where One Or More Fields May Be Blank: Syntax for One Blank Field: {FIELD}1~ {FIELD}2~{IF BLANK}2~{FIELD}3~{ELSE} {FIELD}3~{END IF} Syntax for Two or More Blank Fields: {FIELD}1~ {FIELD}2~{IF BLANK}2~{FIELD}3~{ELSE} {FIELD}3~{END IF}{IF BLANK}3~{FIELD}4~{ELSE} {FIELD}4~{END IF} Merging Several Fields On Separate Lines Where One Or More Fields May Be Blank Syntax for One Blank Field: {FIELD}1~ {FIELD}2~{IF BLANK}2~{FIELD}3~{ELSE} {FIELD}3~{END IF} Syntax for Two or More Blank Fields: {FIELD}1~ {FIELD}2~{IF BLANK}2~{FIELD}3~{ELSE} {FIELD}3~{END IF}{IF BLANK}3~{FIELD}4~{ELSE} {FIELD}4~{END IF} |
Answer:
Details:
Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER. |