{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/vi/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Nếu/ngược lại"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"nếungược-lại","__idx":0},"children":["Nếu/ngược lại"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Loại nút ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["browser_ifElse"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"chức-năng","__idx":1},"children":["Chức năng"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Chọn một nhánh dựa trên điều kiện và dùng nhánh mặc định khi đã được cấu hình."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cấu-hình-trong-ứng-dụng-máy-tính","__idx":2},"children":["Cấu hình trong ứng dụng máy tính"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/if-else.63d0389622fb5170270799982aa7d71b6cd9c529e5373975507889c621e808cd.0538f3a9.webp","alt":"Cấu hình nút \"Nếu/ngược lại\" trong ứng dụng máy tính"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ảnh chụp từ giao diện tiếng Anh của MoreLogin Desktop V2.73.101."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"đầu-vào","__idx":3},"children":["Đầu vào"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Các trường này nằm trong ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.browserUi.inputs"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Nút này không có trường đầu vào riêng."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"yêu-cầu-theo-chế-độ-và-giới-hạn","__idx":4},"children":["Yêu cầu theo chế độ và giới hạn"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Đầu vào:"]}," Không có trường hành động nào. Bạn có thể bỏ qua inputs hoặc truyền ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{}"]},"."," ","inputs không có trường nào. blocks phải là case/caseDefault, với tối đa một nhánh mặc định. Nhánh đầu tiên có điều kiện được thỏa mãn, theo thứ tự các nhánh, sẽ được chọn. Mỗi nhánh chỉ có một nhóm điều kiện (AND trong nhóm). Để biểu diễn OR, hãy thêm nhánh."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Mã lỗi xác thực: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_NODE_INPUT_INVALID"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"đầu-ra","__idx":5},"children":["Đầu ra"]},{"$$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":"Trường đầu ra"},"children":["Trường đầu ra"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Kiểu hoặc giá trị"},"children":["Kiểu hoặc giá trị"]}]}]},{"$$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":["Tham chiếu các trường đã công bố dưới dạng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["${nodeId.data.field}"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ví-dụ-json","__idx":6},"children":["Ví dụ JSON"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Một đối tượng nút hoàn chỉnh để đặt vào mảng ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nodes"]}," của quy trình hoặc vào ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blocks"]}," của một nút khác. Nút này đọc ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read_title.data.text"]},", là đầu ra của một nút \"Đọc dữ liệu phần tử\" đứng trước."]},{"$$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":"/vi/browser-rpa/nodes"},"children":["Quay lại danh mục nút"]}]}]},"headings":[{"value":"Nếu/ngược lại","id":"nếungược-lại","depth":1},{"value":"Chức năng","id":"chức-năng","depth":2},{"value":"Cấu hình trong ứng dụng máy tính","id":"cấu-hình-trong-ứng-dụng-máy-tính","depth":2},{"value":"Đầu vào","id":"đầu-vào","depth":2},{"value":"Yêu cầu theo chế độ và giới hạn","id":"yêu-cầu-theo-chế-độ-và-giới-hạn","depth":2},{"value":"Đầu ra","id":"đầu-ra","depth":2},{"value":"Ví dụ JSON","id":"ví-dụ-json","depth":2}],"frontmatter":{"seo":{"title":"Nếu/ngược lại"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/vi/browser-rpa/nodes/flow/if-else","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}