Informix Error -33068: ELIF after ELSE.
Cause and resolution
ELIF after ELSE.
The ESQL preprocessor ELSE statement indicates the last part of an IFDEF or IFNDEF statement; another ELIF part might not follow. Review the contents of this IFDEF or IFNDEF statement and put its parts in order.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-33068 fires when an ELIF follows an ELSE within the same IFDEF/IFNDEF — per the
official guidance, ELSE marks the last part of the conditional, so no further ELIF
part may follow.
- An
ELIFclause placed afterELSEin the same conditional, per the official guidance — the direct, only cause.
Solutions / Resolution
- Reorder the conditional's parts so
ELIFcomes beforeELSE, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an out-of-order ELIF/ELSE.
Diagnostic Checks
- Check the flagged
IFDEF/IFNDEFblock's clause order, and move anyELIFbefore itsELSE.
Related Errors / Related Topics
- -33052 — "Unmatched ELSE." A related conditional-pairing error.
- -33053 — "Unmatched ENDIF." A related conditional-pairing error.
- -33062 — "Missing ENDIF." A related conditional-pairing error.
- -33067 — "ELIF without IFDEF." A related conditional-pairing error, on
ELIFmissing itsIFDEFentirely rather than followingELSE.
An ELIF clause followed ELSE in the same conditional — reorder so ELIF comes first.