# 0071: Неверное число условий

Количество проверок в [условном выражении](/ru/coding/conditions.md) превысило допустимое значение. Максимальное число условий, проверяемых одновременно с помощью операторов `AND` или `OR`, равно `9`.

**Возможные решения:** разделите условное выражение так, что ни в одном из них нет больше `9` проверок.

Изменить условное выражение с сохранением логики между проверками можно путем выделения проверок в отдельную подпрограмму, как показано ниже:

`AND:`

```
// до
if and
  0@ == 1
  1@ == 1
  2@ == 1
  3@ == 1
  4@ == 1
  5@ == 1
  6@ == 1
  7@ == 1
  8@ == 1
  9@ == 1 // ошибка, слишком много проверок
  10@ == 1 // ошибка, слишком много проверок
then
  // условие выполнено
else
  // условие не выполнено
end

// после
if
  gosub @check
then
  // условие выполнено
else
  // условие не выполнено
end

:check
if and
  0@ == 1
  1@ == 1
  2@ == 1
  3@ == 1
  4@ == 1
  5@ == 1
  6@ == 1
  7@ == 1
  8@ == 1
then
  if and
    9@ == 1
    10@ == 1
  then
    return
  end
end
return
```

`OR:`

```
// до
if or
  0@ == 1
  0@ == 2
  0@ == 3
  0@ == 4
  0@ == 5
  0@ == 6
  0@ == 7
  0@ == 8
  0@ == 9
  0@ == 10 // ошибка, слишком много проверок
  0@ == 11 // ошибка, слишком много проверок
then
  // условие выполнено
else
  // условие не выполнено
end


// после
if 
  gosub @check
then
  // условие выполнено
else
  // условие не выполнено
end

:check
if or
  0@ == 1
  0@ == 2
  0@ == 3
  0@ == 4
  0@ == 5
  0@ == 6
  0@ == 7
  0@ == 8
  0@ == 9
then
  return
end
if or
  0@ == 10
  0@ == 11
then
  return
end
return
```


---

# 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.sannybuilder.com/ru/troubleshooting/errors/0071.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.
