alguidelines/content/docs/BestPractices/case-actions/index.md
Henrik Helgesen fb17dc9640 Removed Discussion Links. Using new Theme solution.
Some additional MDLint cleanup as well
2022-02-24 15:36:06 -08:00

31 lines
469 B
Markdown

---
title: "CASE Action on next line"
tags: ["AL","Readability"]
categories: ["Best Practice"]
---
_Created by Microsoft, Described by waldo_
## Description
A CASE action should start on a line after the possibility.
## Bad code
```AL
case Letter of
'A': Letter2 := '10';
'B': Letter2 := '11';
end;
```
## Good code
```AL
case Letter of
'A':
Letter2 := '10';
'B':
Letter2 := '11';
end;
```