END ELSE Pair

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 November 10, 2025: Merge pull request #279 from microsoft/jeremy-siteops (d2cdf97) by Jeremy Vyska