added caption for each example

This commit is contained in:
Christian Bräunlich 2022-05-05 16:16:27 +00:00
parent 5652ea8c5d
commit 6162a121be
5 changed files with 48 additions and 24 deletions

View file

@ -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