> For the complete documentation index, see [llms.txt](https://docs.sannybuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sannybuilder.com/troubleshooting/errors/0103.md).

# 0103: Expected a switch case

Compiler expected the word `case` or `default` but found something else.

Switch statement syntax only allows the code to be placed after `case` or `default` keywords. Case blocks don't require the `end` keyword.

**Possible solutions:**

* check your code and make sure you follow the [switch statement](/language/control-flow/switch.md) syntax:

```pascal
switch <var>
   case <n1>, <n2>, ... <n3>
     // do something if <var> is equal to n1, n2, or n3
   case <n4>
     // do something if <var> is equal to n4
   default
     // do something if none of the values above matched the variable
end
```
