First pass conversion of NAV Patterns
This commit is contained in:
parent
1341938262
commit
6b32107a72
325 changed files with 11946 additions and 0 deletions
28
content/NAVPatterns/one-statement-per-line/index.md
Normal file
28
content/NAVPatterns/one-statement-per-line/index.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
+++
|
||||
title = "one-statement-per-line.md"
|
||||
weight = 910
|
||||
+++
|
||||
A line of code should not have more than one statement.
|
||||
Bad code
|
||||
|
||||
IF OppEntry.FIND('-') THEN EXIT
|
||||
|
||||
|
||||
|
||||
Good code
|
||||
|
||||
IF OppEntry.FIND('-') THEN
|
||||
EXIT
|
||||
|
||||
|
||||
|
||||
Bad code
|
||||
|
||||
TotalCost += Cost; TotalAmt += Amt;
|
||||
|
||||
|
||||
|
||||
Good code
|
||||
|
||||
TotalCost += Cost;
|
||||
TotalAmt += Amt;
|
||||
Loading…
Add table
Add a link
Reference in a new issue