{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"If/else"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"ifelse","__idx":0},"children":["If/else"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Node type ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["browser_ifElse"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-it-does","__idx":1},"children":["What it does"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Select one branch based on conditions and use a default branch when configured."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"desktop-client-configuration","__idx":2},"children":["Desktop client configuration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/if-else.63d0389622fb5170270799982aa7d71b6cd9c529e5373975507889c621e808cd.0538f3a9.webp","alt":"If/else configuration in the desktop client"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Captured in the English interface of MoreLogin Desktop V2.73.101."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"inputs","__idx":3},"children":["Inputs"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These fields belong in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.browserUi.inputs"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This node has no dedicated input fields."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"mode-requirements-and-limits","__idx":4},"children":["Mode requirements and limits"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Inputs:"]}," There are no action fields. You can omit inputs or pass ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{}"]},"."," ","inputs has no fields. blocks must be case/caseDefault, with at most one default branch. The first branch whose conditions are met, in branch order, is taken. Each branch has only one condition group (AND within the group). To express OR, add branches."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Validation code ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_NODE_INPUT_INVALID"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"outputs","__idx":5},"children":["Outputs"]},{"$$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":"Output field"},"children":["Output field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type or values"},"children":["Type or values"]}]}]},{"$$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":["Reference published fields as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["${nodeId.data.field}"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"json-example","__idx":6},"children":["JSON example"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A complete node object for a workflow's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nodes"]}," array or another node's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blocks"]},". It reads ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_title.data.text"]},", the output of an earlier Read element data node."]},{"$$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":"/browser-rpa/nodes"},"children":["Back to the node catalog"]}]}]},"headings":[{"value":"If/else","id":"ifelse","depth":1},{"value":"What it does","id":"what-it-does","depth":2},{"value":"Desktop client configuration","id":"desktop-client-configuration","depth":2},{"value":"Inputs","id":"inputs","depth":2},{"value":"Mode requirements and limits","id":"mode-requirements-and-limits","depth":2},{"value":"Outputs","id":"outputs","depth":2},{"value":"JSON example","id":"json-example","depth":2}],"frontmatter":{"seo":{"title":"If/else"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/browser-rpa/nodes/flow/if-else","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}