# Unnecessary ELSE

ELSE should not be used when the last action in the THEN part is an EXIT, BREAK, SKIP, QUIT, ERROR.

Bad code

    IF IsAdjmtBinCodeChanged THEN
        ERROR(AdjmtBinCodeChangeNotAllowedErr,...)
    ELSE
        ERROR(BinCodeChangeNotAllowedErr,...);

Good code

    IF IsAdjmtBinCodeChanged THEN
        ERROR(AdjmtBinCodeChangeNotAllowedErr,...)
    ERROR(BinCodeChangeNotAllowedErr,...);

Last modified February 20, 2022: Restructure for Docsy theme (cceb0c94)