alguidelines/content/docs/NAVPatterns/3-cal-coding-guidelines/readability/keyword-pairs-indentation/index.md
2022-02-24 14:45:35 +01:00

341 B

+++ title = "Keyword Pairs - Indentation" weight = 730 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