added "()"
This commit is contained in:
parent
6877f439e9
commit
21bb12f665
1 changed files with 6 additions and 6 deletions
|
|
@ -11,22 +11,22 @@ The `end`, `if`, `repeat`, `for`, `while`, `else` and `case` statement should al
|
||||||
## Bad code
|
## Bad code
|
||||||
|
|
||||||
```al
|
```al
|
||||||
if IsContactName then ValidateContactName
|
if IsContactName then ValidateContactName()
|
||||||
else if IsSalespersonCode then ValidateSalespersonCode
|
else if IsSalespersonCode then ValidateSalespersonCode()
|
||||||
else if IsSalesCycleCode then ValidatSalesCycleCode;
|
else if IsSalesCycleCode then ValidatSalesCycleCode();
|
||||||
```
|
```
|
||||||
|
|
||||||
## Good code
|
## Good code
|
||||||
|
|
||||||
```al
|
```al
|
||||||
if IsContactName then
|
if IsContactName then
|
||||||
ValidateContactName
|
ValidateContactName()
|
||||||
else
|
else
|
||||||
if IsSalespersonCode then
|
if IsSalespersonCode then
|
||||||
ValidateSalespersonCode
|
ValidateSalespersonCode()
|
||||||
else
|
else
|
||||||
if IsSalesCycleCode then
|
if IsSalesCycleCode then
|
||||||
ValidatSalesCycleCode;
|
ValidatSalesCycleCode();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue