{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/pt/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Se/senão"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"sesenão","__idx":0},"children":["Se/senão"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tipo de nó: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["browser_ifElse"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"o-que-faz","__idx":1},"children":["O que faz"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Seleciona uma ramificação com base em condições e usa uma ramificação padrão quando configurada."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"configuração-no-cliente-desktop","__idx":2},"children":["Configuração no cliente desktop"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/if-else.63d0389622fb5170270799982aa7d71b6cd9c529e5373975507889c621e808cd.0538f3a9.webp","alt":"Configuração do nó \"Se/senão\" no cliente desktop"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Captura de tela feita na interface em inglês do MoreLogin Desktop V2.73.101."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"entradas","__idx":3},"children":["Entradas"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Estes campos ficam em ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.browserUi.inputs"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Este nó não tem campos de entrada próprios."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"requisitos-de-modo-e-limites","__idx":4},"children":["Requisitos de modo e limites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Entradas:"]}," não há campos de ação. Você pode omitir inputs ou passar ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{}"]},"."," ","inputs não tem campos. blocks deve conter case/caseDefault, com no máximo uma ramificação padrão. É seguida a primeira ramificação cujas condições são atendidas, na ordem das ramificações. Cada ramificação tem apenas um grupo de condições (AND dentro do grupo). Para expressar OR, adicione ramificações."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Código de validação: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_NODE_INPUT_INVALID"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"saídas","__idx":5},"children":["Saídas"]},{"$$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":"Campo de saída"},"children":["Campo de saída"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Tipo ou valores"},"children":["Tipo ou valores"]}]}]},{"$$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":["Referencie os campos publicados como ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["${nodeId.data.field}"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"exemplo-em-json","__idx":6},"children":["Exemplo em JSON"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Um objeto de nó completo para o array ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nodes"]}," de um fluxo ou para os ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blocks"]}," de outro nó. Ele lê ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_title.data.text"]},", a saída de um nó \"Ler dados do elemento\" anterior."]},{"$$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":"/pt/browser-rpa/nodes"},"children":["Voltar ao catálogo de nós"]}]}]},"headings":[{"value":"Se/senão","id":"sesenão","depth":1},{"value":"O que faz","id":"o-que-faz","depth":2},{"value":"Configuração no cliente desktop","id":"configuração-no-cliente-desktop","depth":2},{"value":"Entradas","id":"entradas","depth":2},{"value":"Requisitos de modo e limites","id":"requisitos-de-modo-e-limites","depth":2},{"value":"Saídas","id":"saídas","depth":2},{"value":"Exemplo em JSON","id":"exemplo-em-json","depth":2}],"frontmatter":{"seo":{"title":"Se/senão"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/pt/browser-rpa/nodes/flow/if-else","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}