formatted nav patterns 2 to 4
This commit is contained in:
parent
2fad891a77
commit
f1f4aab1d7
55 changed files with 788 additions and 506 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue