Unnecessary Compound Parenthesis
Categories:
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;
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified August 11, 2025: Merge pull request #264 from microsoft/jeremy-siteops (f82dfd0)
by Jeremy Vyska