# Keyword Pairs - Indentation

##### Tags:

- C/AL
- Readability

##### Categories:

- Best Practice

The IF..THEN pair, WHILE..DO pair, and FOR..DO pair must appear on the same line or the same level of indentation.

Bad code

    IF (x = y) AND
       (a = b) THEN

Good code

    IF (x = y) AND
       (a = b)
    THEN

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