# Unnecessary Compound Parenthesis

##### Tags:

- C/AL
- Readability

##### Categories:

- Best Practice

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;

Last modified February 24, 2022: Added tags & categories + cleanup (5ee04366) by waldo1001