alguidelines/content/docs/BestPractices/keyword-pairs-indentation/index.md
2022-02-20 13:18:49 +01:00

923 B

title tags categories
Keyword Pairs - Indentation
Readability
Best Practice

Created by Microsoft, Described by waldo

Description

The if..then pair, while..do pair, and for..do pair must appear on the same line or the same level of indentation. If possible, you can align the lines it is even much more readable.

Bad code

    if (x = y) and
      (a = b) then

Good code

    if (x = y) and
       (a = b) 
    then

Discussions

You can find discussions on all "Best Practices" here.

If you don't find the discussion of this guideline, please feel free to create a new one with the same title as this article.