Top Navigational Bar

IFBLANK And IFNOTBLANK How To Use
DocumentID: 10514
Revision Date: 07-Mar-97 4:05:55 PM

The information in this document applies to:
WordPerfect® 6.0 for DOS

Problem

The IFBLANK and IFNOTBLANK statements are used in conjunction with MERGE functions. They just check to see if the specified field contains information. Then will return a yes or no. The syntax is very similar to an IF statement except the expression checks a field. Here is an example of using both.

Field(name)
IFNOTBLANK(company)Field(cornpany)
ENDIF Field(address)
IFNOTBLANK(address)Field(address)
ENDIF Field(city), Field(state) Field(zip)

Dear IFNOTBLANK(firstname)Field(firstname)ELSE Customer: ENDIF

or

IFBLANK(nsme) Field(contact) ELSE Field(name)ENDIF
Field(cornpany)
Field(address)
Field(city), Field(state) Field(zip)

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.