formatted nav patterns 2 to 4

This commit is contained in:
christianbraeunlich 2022-02-05 19:44:44 +01:00
parent 2fad891a77
commit f1f4aab1d7
55 changed files with 788 additions and 506 deletions

View file

@ -3,24 +3,30 @@ title = "Unnecessary TRUE/FALSE"
weight = 1300
+++
Do not use TRUE or FALSE keywords unnecessarily if the expression is already an logical expression.
Bad code
IF IsPositive() = TRUE THEN
```al
IF IsPositive() = TRUE THEN
```
Good code
IF IsPositive THEN
```al
IF IsPositive THEN
```
Bad code
IF Complete <\> TRUE THEN
```
IF Complete <> TRUE THEN
```
Good code
IF NOT Complete THEN
```al
IF NOT Complete THEN
```