requested change
This commit is contained in:
parent
39340ca56d
commit
32e73b30ee
1 changed files with 3 additions and 3 deletions
|
|
@ -6,20 +6,20 @@ weight = 730
|
|||
<_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.
|
||||
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
|
||||
|
||||
```al
|
||||
if (x = y) and
|
||||
(a = b) then
|
||||
(a = b) then
|
||||
```
|
||||
|
||||
## Good code
|
||||
|
||||
```al
|
||||
if (x = y) and
|
||||
(a = b)
|
||||
(a = b)
|
||||
then
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue