added caption for each example
This commit is contained in:
parent
5652ea8c5d
commit
6162a121be
5 changed files with 48 additions and 24 deletions
|
|
@ -9,25 +9,29 @@ _Created by Microsoft, Described by waldo_
|
|||
## Description
|
||||
Do not use `true` or `false` keywords unnecessarily if the expression is already an logical expression.
|
||||
|
||||
## Bad code
|
||||
## Example 1
|
||||
|
||||
### Bad code
|
||||
|
||||
```al
|
||||
if IsPositive() = true then
|
||||
```
|
||||
|
||||
## Good code
|
||||
### Good code
|
||||
|
||||
```al
|
||||
if IsPositive() then
|
||||
```
|
||||
|
||||
## Bad code
|
||||
## Example 2
|
||||
|
||||
### Bad code
|
||||
|
||||
```al
|
||||
if Complete <> true then
|
||||
```
|
||||
|
||||
## Good code
|
||||
### Good code
|
||||
|
||||
```al
|
||||
if not Complete then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue