Keyword Pairs - Indentation
Categories:
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.
Last modified February 20, 2022: Restructure for Docsy theme (cceb0c94)