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,26 +3,30 @@ title = "Unnecessary Compound Parenthesis"
weight = 1260
+++
Use parenthesis only to enclose compound expressions inside compound expressions.
Bad code
IF ("Costing Method" = "Costing Method"::Standard) THEN
```al
IF ("Costing Method" = "Costing Method"::Standard) THEN
```
Good code
IF "Costing Method" = "Costing Method"::Standard THEN
####
```al
IF "Costing Method" = "Costing Method"::Standard THEN
```
Bad code
ProfitPct = -(Profit) / CostAmt \* 100;
```al
ProfitPct = -(Profit) / CostAmt * 100;
```
Good code
ProfitPct = -Profit / CostAmt \* 100;
```al
ProfitPct = -Profit / CostAmt * 100;
```