Reorganizing
This commit is contained in:
parent
a4f6467d78
commit
f4886ee235
326 changed files with 4 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
+++
|
||||
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
|
||||
|
||||
|
||||
|
||||
Good code
|
||||
|
||||
IF "Costing Method" = "Costing Method"::Standard THEN
|
||||
|
||||
|
||||
|
||||
####
|
||||
|
||||
Bad code
|
||||
|
||||
ProfitPct = -(Profit) / CostAmt \* 100;
|
||||
|
||||
|
||||
|
||||
Good code
|
||||
|
||||
ProfitPct = -Profit / CostAmt \* 100;
|
||||
Loading…
Add table
Add a link
Reference in a new issue