> For the complete documentation index, see [llms.txt](https://nicologies.gitbook.io/awesome-programming-knowledge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nicologies.gitbook.io/awesome-programming-knowledge/writing-better-code/books/clean-code-a-handbook-of-agile-software-craftsmanship/avoid-having-bool-function-parameters.md).

# Avoid having BOOL Function Parameters

A boolean can often make code more complex and less straightforward, it introduces a branch into your function and allows the callers to control the flow, which is usually confusing.

Also see: <https://martinfowler.com/bliki/FlagArgument.html>
