{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/uk/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Якщо/інакше"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"якщоінакше","__idx":0},"children":["Якщо/інакше"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Тип вузла ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["browser_ifElse"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"призначення","__idx":1},"children":["Призначення"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Вибирає одну гілку на основі умов і використовує гілку за замовчуванням, якщо її налаштовано."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"налаштування-в-настільному-клієнті","__idx":2},"children":["Налаштування в настільному клієнті"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/if-else.63d0389622fb5170270799982aa7d71b6cd9c529e5373975507889c621e808cd.0538f3a9.webp","alt":"Налаштування вузла «Якщо/інакше» в настільному клієнті"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Знімок екрана зроблено в англійському інтерфейсі MoreLogin Desktop V2.73.101."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"вхідні-дані","__idx":3},"children":["Вхідні дані"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ці поля розміщуються в ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.browserUi.inputs"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Цей вузол не має окремих полів вхідних даних."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"вимоги-до-режимів-і-обмеження","__idx":4},"children":["Вимоги до режимів і обмеження"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Вхідні дані:"]}," полів дії немає. Можна пропустити inputs або передати ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{}"]},"."," ","inputs не має полів. blocks мають бути case/caseDefault, з не більше ніж однією гілкою за замовчуванням. Вибирається перша в порядку розташування гілка, умови якої виконано. Кожна гілка має лише одну групу умов (AND у межах групи). Щоб виразити OR, додайте гілки."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Код помилки перевірки: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_NODE_INPUT_INVALID"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"вихідні-дані","__idx":5},"children":["Вихідні дані"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Поле вихідних даних"},"children":["Поле вихідних даних"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Тип або значення"},"children":["Тип або значення"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["matched"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["boolean"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["branch"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["branchId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Посилайтеся на опубліковані поля у форматі ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["${nodeId.data.field}"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"приклад-json","__idx":6},"children":["Приклад JSON"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Повний об'єкт вузла для масиву ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nodes"]}," сценарію або для ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blocks"]}," іншого вузла. Вузол читає ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_title.data.text"]},", тобто вихідні дані попереднього вузла «Прочитати дані елемента»."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"check_heading\",\n  \"type\": \"browser_ifElse\",\n  \"data\": {\n    \"title\": \"Check whether the page is the sign-in page\",\n    \"browserAction\": \"ifElse\",\n    \"browserUi\": {\n      \"inputs\": {}\n    }\n  },\n  \"blocks\": [\n    {\n      \"id\": \"is_sign_in\",\n      \"type\": \"case\",\n      \"data\": {\n        \"title\": \"Sign-in page\",\n        \"conditionGroups\": [\n          {\n            \"content\": [\n              {\n                \"left\": {\n                  \"type\": \"ref\",\n                  \"content\": [\n                    \"read_title\",\n                    \"data\",\n                    \"text\"\n                  ]\n                },\n                \"operator\": \"contains\",\n                \"right\": {\n                  \"type\": \"constant\",\n                  \"content\": \"Sign in\"\n                }\n              }\n            ]\n          }\n        ]\n      },\n      \"blocks\": [\n        {\n          \"id\": \"click_sign_in\",\n          \"type\": \"browser_click\",\n          \"data\": {\n            \"title\": \"Click the sign-in button\",\n            \"browserAction\": \"click\",\n            \"browserUi\": {\n              \"inputs\": {\n                \"selectorType\": \"selector\",\n                \"selectorRadio\": \"CSS\",\n                \"selector\": \"#sign-in\",\n                \"postWaitMs\": 300\n              },\n              \"exception\": {\n                \"timeout\": 30000,\n                \"policy\": \"interrupt\"\n              }\n            }\n          }\n        }\n      ]\n    },\n    {\n      \"id\": \"other_page\",\n      \"type\": \"caseDefault\",\n      \"data\": {\n        \"title\": \"Any other page\"\n      },\n      \"blocks\": [\n        {\n          \"id\": \"reload_other\",\n          \"type\": \"browser_refreshPage\",\n          \"data\": {\n            \"title\": \"Reload the page\",\n            \"browserAction\": \"refreshPage\",\n            \"browserUi\": {\n              \"inputs\": {\n                \"postWaitMs\": 1000\n              },\n              \"exception\": {\n                \"timeout\": 30000,\n                \"policy\": \"interrupt\"\n              }\n            }\n          }\n        }\n      ]\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/uk/browser-rpa/nodes"},"children":["Назад до каталогу вузлів"]}]}]},"headings":[{"value":"Якщо/інакше","id":"якщоінакше","depth":1},{"value":"Призначення","id":"призначення","depth":2},{"value":"Налаштування в настільному клієнті","id":"налаштування-в-настільному-клієнті","depth":2},{"value":"Вхідні дані","id":"вхідні-дані","depth":2},{"value":"Вимоги до режимів і обмеження","id":"вимоги-до-режимів-і-обмеження","depth":2},{"value":"Вихідні дані","id":"вихідні-дані","depth":2},{"value":"Приклад JSON","id":"приклад-json","depth":2}],"frontmatter":{"seo":{"title":"Якщо/інакше"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/uk/browser-rpa/nodes/flow/if-else","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}