added "()"

This commit is contained in:
waldo 2021-12-14 22:30:32 +01:00
parent 6877f439e9
commit 21bb12f665

View file

@ -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();
``` ```