From a83d00e8a2126525dc2a5ba0c067dd3b930b4b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Maro=C5=84?= Date: Wed, 15 Dec 2021 07:49:06 +0100 Subject: [PATCH] Updated some casing mistakes --- content/BCBestPractices/Readability/begin-end/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/BCBestPractices/Readability/begin-end/index.md b/content/BCBestPractices/Readability/begin-end/index.md index 52394bff..41b2aeda 100644 --- a/content/BCBestPractices/Readability/begin-end/index.md +++ b/content/BCBestPractices/Readability/begin-end/index.md @@ -20,7 +20,7 @@ end; ## Good code ```AL -IF FindSet() then +if FindSet() then repeat ... until next() = 0; @@ -29,7 +29,7 @@ IF FindSet() then ## Bad code ```AL -IF IsAssemblyOutputLine then begin +if IsAssemblyOutputLine then begin TestField("Order Line No.",0); end; ``` @@ -37,7 +37,7 @@ end; ## Good code ```AL -IF IsAssemblyOutputLine then +if IsAssemblyOutputLine then TestField("Order Line No.",0); ``` @@ -45,8 +45,8 @@ IF IsAssemblyOutputLine then ```AL // Except for this case -IF X then begin - IF Y then +if X then begin + if Y then //DO SOMETHING; end else (not X)