From 21bb12f665b42d82214c4fe90c4b3c82acf31720 Mon Sep 17 00:00:00 2001 From: waldo Date: Tue, 14 Dec 2021 22:30:32 +0100 Subject: [PATCH] added "()" --- .../Readability/line-start-keywords/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/BCBestPractices/Readability/line-start-keywords/index.md b/content/BCBestPractices/Readability/line-start-keywords/index.md index 503768e7..dc758f29 100644 --- a/content/BCBestPractices/Readability/line-start-keywords/index.md +++ b/content/BCBestPractices/Readability/line-start-keywords/index.md @@ -11,22 +11,22 @@ The `end`, `if`, `repeat`, `for`, `while`, `else` and `case` statement should al ## Bad code ```al - if IsContactName then ValidateContactName - else if IsSalespersonCode then ValidateSalespersonCode - else if IsSalesCycleCode then ValidatSalesCycleCode; + if IsContactName then ValidateContactName() + else if IsSalespersonCode then ValidateSalespersonCode() + else if IsSalesCycleCode then ValidatSalesCycleCode(); ``` ## Good code ```al if IsContactName then - ValidateContactName + ValidateContactName() else if IsSalespersonCode then - ValidateSalespersonCode + ValidateSalespersonCode() else if IsSalesCycleCode then - ValidatSalesCycleCode; + ValidatSalesCycleCode(); ```