# Functions

Similar to how guard clauses allow you to pull out a chunk of code one level, functions do the same. Functions are structures, meaning you'd completely restart indentation again! If you can't employ any other methods to reduce nesting and you're getting a ways along the stairway to Hell, you can call a function to reset the indentation. This essentially breaks up your code into two segments, the function, and the code leading to the function. These smaller chunks are easier to focus on, making programming and reading much more effortless.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://x8ight.gitbook.io/syntask/organisation/never-nesting/functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
