alguidelines/content/NAVPatterns/3-cal-coding-guidelines/readability/keyword-pairs-indentation/index.md
2022-02-05 19:44:44 +01:00

20 lines
280 B
Markdown

+++
title = "Keyword Pairs - Indentation"
weight = 730
+++
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
```al
IF (x = y) AND
(a = b) THEN
```
Good code
```al
IF (x = y) AND
(a = b)
THEN
```