First pass conversion of NAV Patterns
This commit is contained in:
parent
1341938262
commit
6b32107a72
325 changed files with 11946 additions and 0 deletions
38
content/NAVPatterns/spacing-binary-operators/index.md
Normal file
38
content/NAVPatterns/spacing-binary-operators/index.md
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
+++
|
||||
title = "spacing-binary-operators.md"
|
||||
weight = 1120
|
||||
+++
|
||||
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.
|
||||
Bad code
|
||||
|
||||
"Line Discount %" := "Line Discount Amount"/"Line Value"\*100
|
||||
|
||||
|
||||
|
||||
Good code
|
||||
|
||||
"Line Discount %" := "Line Discount Amount" / "Line Value" \* 100;
|
||||
|
||||
|
||||
|
||||
Bad code
|
||||
|
||||
StartDate := CALCDATE('<+'+FORMAT(Days + i)+'D\>', StartDate);
|
||||
|
||||
|
||||
|
||||
Good code
|
||||
|
||||
StartDate := CALCDATE('<+' + FORMAT(Days + i) + 'D\>',StartDate);
|
||||
|
||||
|
||||
|
||||
Bad code
|
||||
|
||||
StartDate := 0D; // Initialize
|
||||
|
||||
|
||||
|
||||
Good code
|
||||
|
||||
StartDate := 0D; // Initialize
|
||||
Loading…
Add table
Add a link
Reference in a new issue