# Переносы в операторе if

Оформление строк для выражения if должно использовать 8-символьный отступ, т.к. использование стандартного (4-символьного) затрудняет просмотр тела выражения. Например:

```
// ТАК ОТСТУПЫ ДЕЛАТЬ НЕЛЬЗЯ
if ((condition1 && condition2)
    || (condition3 && condition4)
    ||!(condition5 && condition6)) { //ПЛОХОЕ ОФОРМЛЕНИЕ
    doSomethingAboutIt(); // ПОЗВОЛЯЕТ ЛЕГКО ПРОПУСТИТЬ ЭТУ СТРОКУ
}

// ЛУЧШЕ ОТСТУПЫ ДЕЛАТЬ ВОТ ТАК
if ((condition1 &amp;&amp; condition2)
        || (condition3 && condition4)
        ||!(condition5 && condition6)) {
    doSomethingAboutIt();
}

// ИЛИ ВОТ ТАК
if ((condition1 && condition2) || (condition3 && condition4)
        ||!(condition5 && condition6)) {
    doSomethingAboutIt();
}
```


---

# 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://comaqa.gitbook.io/java-automation/stil-napisaniya-koda/perenosy-v-operatore-if.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.
