> For the complete documentation index, see [llms.txt](https://liavt.gitbook.io/styleguide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liavt.gitbook.io/styleguide/style/goto.md).

# Goto

No. Do not use `goto`. If you absolutely have to use a `goto` statement, use a `switch case` instead or restructure your code.

{% hint style="info" %}
*REASONING:* `goto`'s lead to spaghetti code and unsafe practices. If you have to use `goto` and not `continue`, `return`, or `break`, then your code is not structured correctly (or you are using assembly)
{% endhint %}
