# Условие

![](/files/43xzQGkwFksGk1H67vLx)

Шаблон этапа "Условие" необходим для обработки случаев, когда у переменной возможны только 2 значения Истина или Ложь. На первой вкладке "Условия ветвления" указывается собственно само условие. Выбирается этап и исходящий параметр этого этапа, который будет сравниваться по нужному нам виду сравнения и проверятся на истинность. К примеру, у нас есть переменная. В ходе выполнения робота, она принимает некое значение. И здесь мы ее сравниваем с определенным значение. Например, нас интересует, меньше или больше переменная 12. Если меньше, то выполнится одна ветка алгоритма. Если больше или равна 12, то другая ветка алгоритма.


---

# 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.onerpa.ru/rpa-platforma-onerpa/shablony-etapov/shablony-etapov-programmirovaniya/vetvleniya/uslovie.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.
