# END ELSE Pair

##### Tags:

- C/AL
- Readability

##### Categories:

- Best Practice

The END ELSE pair should always appear on the same line.

Bad code

    IF OppEntry.FIND('-') THEN
        IF SalesCycleStage.FIND('-') THEN BEGIN
            ...
        END
    ELSE
        ...

Good code

    IF OppEntry.FIND('-') THEN
        IF SalesCycleStage.FIND('-') THEN BEGIN
            ...
    END ELSE
        ...

Last modified February 24, 2022: Added tags & categories + cleanup (5ee04366) by waldo1001