diff --git a/content/BCBestPractices/Readability/spacing-binary-operators/index.md b/content/BCBestPractices/Readability/spacing-binary-operators/index.md index 6275621a..46e63427 100644 --- a/content/BCBestPractices/Readability/spacing-binary-operators/index.md +++ b/content/BCBestPractices/Readability/spacing-binary-operators/index.md @@ -6,30 +6,30 @@ weight = 1120 <_Created by Microsoft, Described by waldo_\> ## Description -There must be exactly one space character on each side of a binary operator such as = + - AND OR =. The parameter comma operator however, should have no spaces. +There must be exactly one space character on each side of a binary operator such as = + - AND OR =. The parameter comma operator however, should have a space after the comma. ## Bad code ```al - "Line Discount %" := "Line Discount Amount"/"Line Value"\*100; + "Line Discount %" := "Line Discount Amount"/"Line Value"*100; ``` ## Good code ```al - "Line Discount %" := "Line Discount Amount" / "Line Value" \* 100; + "Line Discount %" := "Line Discount Amount" / "Line Value" * 100; ``` ## Bad code ```al - StartDate := CalcDate('<+'+Format(Days+i)+'D\>', StartDate); + StartDate := CalcDate('<+'+Format(Days+i)+'D\>',StartDate); ``` ## Good code ```al - StartDate := CalcDate('<+' + Format(Days + i) + 'D\>',StartDate); + StartDate := CalcDate('<+' + Format(Days + i) + 'D\>', StartDate); ``` ## Bad code