Top Navigational Bar

Macros - {IF} Statement Comparing Quote Stops
DocumentID: 653567
Revision Date: 29-Feb-96 8:29:24 PM

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

Problem

Symptoms: When an {IF} statement compares a quote, the macro stops execution. Part of the macro is as follows:
{ASSIGN}A~"~
{IF}"{VARIABLE}A~"="dog"~{GO}animal~{END IF} Solutions: The problem is that the expression turns into:
{IF}"""="dog"~ etc...
This, of course, is incorrect syntax and causes an error condition and stops the macro. The solution is to use an {ON ERROR}~ command so the macro does nothing when this error occurs.

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.