# Control Flow

In order to perform any sort of logic, control flow statements must exist to form a decision model. Cheddar is abundant with control flow statements, inheriting syntax and statements, from the C language.

> ## Note::Best Practice
>
> In Cheddar, parenthesis are optional around most statements. This is to suit a wider variety of programmings styles. For this reason, when using more complex statements, it is generally regarded as better practice to put parenthesis around your condition
>
> For example the following is readable:
>
> ```swift
> if input is String {
>     print "Input is a string!"
> }
> ```
>
> While the following isn't:
>
> ```go
> if len input = argv[0].split(",", true).map(-> (i) i - 1) > 3 {
>     print "Too many arguments"
> }
> ```
>
> Without syntax highlighting, this can be quite unreadable at a glance


---

# 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://docs.cheddar.vihan.org/docs/control-flow.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.
