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)