![]() |
Macro - {CASE} Statement Contained Within A |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: The problem occurs when a {CASE} statement is contained within an {IF} statement. An {ELSE} statement is acceptable for both the {CASE} and the {IF} statements. However, with a {CASE} command inside of an {IF} command, the macro becomes confused and does not process the {ELSE} statements as written. Solutions: This is why the {OTHERWISE} command was added for the {CASE} and {CASE CALL} commands. Example: {CASE}{VARIABLE}a~~1~one~2~two~3~three~{ELSE}~one~~ Should be: {CASE}{VARIABLE}a~~1~one~2~two~3~three~{OTHERWISE}~one~~ The {ELSE} command is used in connection with the {IF}, {IF BLANK}, {IF EXISTS}, {IF NOT BLANK}, and {END IF} commands. The {OTHERWISE} command is used with {CASE} and {CASE CALL}. How/Why: {ELSE} refers to the commands listed above. If {ELSE} is used with the {CASE}/{CASE CALL} command within an {IF} statement, the {ELSE} will act as part of the {IF} statement, not as part of the {CASE}. |
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. |