Multi-branch dynamic routing, condition evaluations, and intelligent DAG branch skipping.
The Switch (Router) component introduces conditional multi-branch routing into Quixa workflows. It inspects predecessor status codes, response payloads, or flow variables and dynamically directs execution down matching downstream paths.
1. Visual Multi-Case Builder
In the Switch Configuration Dialog, you can configure multiple discrete routing branches:
Match Value: The expected constant or dynamic comparison value.
Switch can also operate in Expression Mode, evaluating raw JavaScript expressions (e.g. item.totalPrice > 500 && item.currency === 'USD').
2. Dynamic Handles & Color-Coded Badges
The Switch is drawn as a decision diamond, like the IF node. A short stem leaves its right corner to a port rail with one labelled output port per case, in case order; the optional DEFAULT port leaves the bottom corner, like FALSE on an IF:
case-0: Connected to the first matching branch.
case-1, case-2…: Subsequent condition branches.
default: An optional fallback port (bottom corner) triggered when no case matches.
The diamond keeps the same size however many cases there are; only the rail grows.Connection wires originating from a Switch handle render in vibrant purple (#8b5cf6) with dedicated branch badges (Payment Approved), making complex routing logic easy to audit visually.
Evaluation Target Is Required
A Switch in rules mode needs an evaluation target (the field or variable to evaluate), unless every case sets its own field; in expression mode it needs an expression. A Switch without one shows an amber ! marker on the canvas and does not run: its result is Error (“Switch has no evaluation target”) and the nodes behind it are skipped. The IF node follows the same rule for its condition.
Run Results
A Switch (and an IF) is a decision, not an HTTP request, so its run result shows a Decision view instead of Request / Response tabs:
Evaluated: the target and the value it resolved to, for example {{GetPet.response.status}} → 404.
Matched: the case that matched (Case 2 · 404 Not Found) or DEFAULT. For an IF: ResultTRUE / FALSE.
Next: the node the flow continued with.
The raw output stays available under Raw output.
3. Intelligent DAG Condition Skipping
When the workflow executes:
The engine evaluates Switch cases in sequential order until the first match succeeds.
Downstream nodes belonging to the matching branch execute normally.
Downstream nodes belonging to unchosen branches are automatically flagged as skipKind: "condition".
Visual Dimming: On the canvas, skipped branches immediately dim to 35% opacity and 95% grayscale, giving operators immediate visual clarity on execution flow.
4. Convergent Downstream Nodes
If multiple branches converge back into a shared downstream node (e.g. an audit log step):
The engine guarantees that the convergent node executes as long as at least one active branch reaches it.
Unchosen skipped branches do not block the shared node.
5. Enterprise Decision Tree Patterns
Threshold-Based Approval Routing
Route requests dynamically based on transaction size or risk score:
Case 1 (Amount < 50,000): Routes directly to POST /transfers/auto-approve (Instant STP execution).
Case 2 (Amount >= 50,000): Routes to POST /compliance/queue-review (Manual officer review).
Default: Routes to POST /risk/flag-suspicious.
During runtime, the unchosen branches immediately gray out on the canvas, providing instant visual diagnostic proof of compliance routing without digging through server logs.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Quixa","colors":{"primary":"#7c3aed","light":"#a78bfa","dark":"#6d28d9"},"logo":{"light":"https://mintcdn.com/quixa-io/bCH3nNjFwfIIDBeO/logo/light.svg?fit=max\u0026auto=format\u0026n=bCH3nNjFwfIIDBeO\u0026q=85\u0026s=49c211a943054b51967bc6a871e56232","dark":"https://mintcdn.com/quixa-io/bCH3nNjFwfIIDBeO/logo/dark.svg?fit=max\u0026auto=format\u0026n=bCH3nNjFwfIIDBeO\u0026q=85\u0026s=f54ed0cb04ca1ead77abb7dd5aa67317"},"favicon":"https://mintcdn.com/quixa-io/bCH3nNjFwfIIDBeO/favicon.svg?fit=max\u0026auto=format\u0026n=bCH3nNjFwfIIDBeO\u0026q=85\u0026s=15ed0a6c9c4652067d6170bf45f90759","navbar":{"links":[{"href":"https://app.quixa.io","label":"Platform App"},{"href":"https://quixa.io","label":"Website"}],"primary":{"type":"button","label":"Request Early Access","href":"https://quixa.io"}},"footer":{"socials":{"github":"https://github.com/Quixa-io"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"quixa-io","hasAudioNarration":false,"actualSubdomain":"quixa-io","customDomains":["docs.quixa.io"],"gitSource":{"type":"github","owner":"quixa-io","repo":"quixa-platform","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b0e1c625f8d38fc754eb6aa","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"Guides","count":53},{"language":"default","tag":"Platform Guides","count":51},{"language":"default","tag":"Visual Canvas \u0026 Components","count":14},{"language":"default","tag":"Testing \u0026 Quality Engineering","count":10},{"language":"default","tag":"Concepts \u0026 Data Engine","count":9},{"language":"default","tag":"Enterprise Governance","count":8},{"language":"default","tag":"Plugins \u0026 Extensions","count":4},{"language":"default","tag":"AI \u0026 Autonomous Architect","count":3},{"language":"default","tag":"Analytics \u0026 CI/CD","count":3},{"language":"default","tag":"API Reference","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"components/switch-router","slug":"/components/switch-router","pageMetadata":{"title":"Switch (Router) Component","description":"Multi-branch dynamic routing, condition evaluations, and intelligent DAG branch skipping.","href":"/components/switch-router"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Multi-branch dynamic routing, condition evaluations, and intelligent DAG branch skipping.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Mermaid,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Switch (Router)`}),` component introduces conditional multi-branch routing into Quixa workflows. It inspects predecessor status codes, response payloads, or flow variables and dynamically directs execution down matching downstream paths.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`1-visual-multi-case-builder`,children:`1. Visual Multi-Case Builder`}),`\n`,_jsxs(_components.p,{children:[`In the `,_jsx(_components.strong,{children:`Switch Configuration Dialog`}),`, you can configure multiple discrete routing branches:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Branch Label`}),`: A human-readable identifier (e.g. `,_jsx(_components.code,{children:`Payment Approved`}),`, `,_jsx(_components.code,{children:`KYC Required`}),`, `,_jsx(_components.code,{children:`Declined`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Source Expression / Variable`}),`: The target variable to evaluate, such as:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`{{PaymentStep.statusCode}}`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`{{PaymentStep.response.status}}`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`{{flowVars.retryCount}}`})}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Comparison Operator`}),`:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Numeric \u0026 String Equality: `,_jsx(_components.code,{children:`==`}),`, `,_jsx(_components.code,{children:`!=`})]}),`\n`,_jsxs(_components.li,{children:[`Numeric Thresholds: `,_jsx(_components.code,{children:`>`}),`, `,_jsx(_components.code,{children:`\u003c`}),`, `,_jsx(_components.code,{children:`>=`}),`, `,_jsx(_components.code,{children:`\u003c=`})]}),`\n`,_jsxs(_components.li,{children:[`String Matching: `,_jsx(_components.code,{children:`contains`}),`, `,_jsx(_components.code,{children:`not_contains`}),`, `,_jsx(_components.code,{children:`starts_with`}),`, `,_jsx(_components.code,{children:`ends_with`})]}),`\n`,_jsxs(_components.li,{children:[`Nullability: `,_jsx(_components.code,{children:`is_empty`}),`, `,_jsx(_components.code,{children:`is_not_empty`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Match Value`}),`: The expected constant or dynamic comparison value.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Switch can also operate in `,_jsx(_components.strong,{children:`Expression Mode`}),`, evaluating raw JavaScript expressions (e.g. `,_jsx(_components.code,{children:`item.totalPrice > 500 \u0026\u0026 item.currency === 'USD'`}),`).`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`2-dynamic-handles-\u0026-color-coded-badges`,children:`2. Dynamic Handles \u0026 Color-Coded Badges`}),`\n`,_jsxs(_components.p,{children:[`The Switch is drawn as a decision diamond, like the IF node. A short stem leaves its right corner to a port rail with one labelled output port per case, in case order; the optional `,_jsx(_components.strong,{children:`DEFAULT`}),` port leaves the bottom corner, like FALSE on an IF:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`case-0`}),`: Connected to the first matching branch.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`case-1`}),`, `,_jsx(_components.code,{children:`case-2`}),`…: Subsequent condition branches.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`default`}),`: An optional fallback port (bottom corner) triggered when no case matches.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The diamond keeps the same size however many cases there are; only the rail grows.`}),`\n`,_jsxs(_components.p,{children:[`Connection wires originating from a Switch handle render in vibrant purple (`,_jsx(_components.code,{children:`#8b5cf6`}),`) with dedicated branch badges (`,_jsx(_components.code,{children:`Payment Approved`}),`), making complex routing logic easy to audit visually.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`evaluation-target-is-required`,children:`Evaluation Target Is Required`}),`\n`,_jsxs(_components.p,{children:[`A Switch in rules mode needs an `,_jsx(_components.strong,{children:`evaluation target`}),` (the field or variable to evaluate), unless every case sets its own field; in expression mode it needs an expression. A Switch without one shows an amber `,_jsx(_components.strong,{children:`!`}),` marker on the canvas and does not run: its result is `,_jsx(_components.strong,{children:`Error`}),` (“Switch has no evaluation target”) and the nodes behind it are skipped. The IF node follows the same rule for its condition.`]}),`\n`,_jsx(Heading,{level:`2`,id:`run-results`,children:`Run Results`}),`\n`,_jsxs(_components.p,{children:[`A Switch (and an IF) is a decision, not an HTTP request, so its run result shows a `,_jsx(_components.strong,{children:`Decision`}),` view instead of Request / Response tabs:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Evaluated`}),`: the target and the value it resolved to, for example `,_jsx(_components.code,{children:`{{GetPet.response.status}} → 404`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Matched`}),`: the case that matched (`,_jsx(_components.code,{children:`Case 2 · 404 Not Found`}),`) or `,_jsx(_components.code,{children:`DEFAULT`}),`. For an IF: `,_jsx(_components.strong,{children:`Result`}),` `,_jsx(_components.code,{children:`TRUE`}),` / `,_jsx(_components.code,{children:`FALSE`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Next`}),`: the node the flow continued with.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The raw output stays available under `,_jsx(_components.strong,{children:`Raw output`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`3-intelligent-dag-condition-skipping`,children:`3. Intelligent DAG Condition Skipping`}),`\n`,_jsx(_components.p,{children:`When the workflow executes:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The engine evaluates Switch cases in sequential order until the first match succeeds.`}),`\n`,_jsx(_components.li,{children:`Downstream nodes belonging to the matching branch execute normally.`}),`\n`,_jsxs(_components.li,{children:[`Downstream nodes belonging to `,_jsx(_components.strong,{children:`unchosen branches`}),` are automatically flagged as `,_jsx(_components.code,{children:`skipKind: \"condition\"`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Visual Dimming`}),`: On the canvas, skipped branches immediately dim to `,_jsx(_components.strong,{children:`35% opacity and 95% grayscale`}),`, giving operators immediate visual clarity on execution flow.`]}),`\n`]}),`\n`,_jsx(Mermaid,{chart:`graph LR\n Auth[\"🔐 Auth Step\"] --> Router{\"🔀 Switch Router\"}\n Router -- \"200 OK\" --> Profile[\"👤 Fetch Profile\"]\n Router -- \"401 / 403\" --> RefreshToken[\"🔄 Refresh Token\"]\n Router -- \"Default\" --> Alert[\"🚨 Send Slack Alert\"]`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`4-convergent-downstream-nodes`,children:`4. Convergent Downstream Nodes`}),`\n`,_jsx(_components.p,{children:`If multiple branches converge back into a shared downstream node (e.g. an audit log step):`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The engine guarantees that the convergent node executes as long as at least `,_jsx(_components.strong,{children:`one active branch`}),` reaches it.`]}),`\n`,_jsx(_components.li,{children:`Unchosen skipped branches do not block the shared node.`}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`5-enterprise-decision-tree-patterns`,children:`5. Enterprise Decision Tree Patterns`}),`\n`,_jsx(Heading,{level:`3`,id:`threshold-based-approval-routing`,children:`Threshold-Based Approval Routing`}),`\n`,_jsx(_components.p,{children:`Route requests dynamically based on transaction size or risk score:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Case 1 (`,_jsx(_components.code,{children:`Amount \u003c 50,000`}),`)`]}),`: Routes directly to `,_jsx(_components.code,{children:`POST /transfers/auto-approve`}),` (Instant STP execution).`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Case 2 (`,_jsx(_components.code,{children:`Amount >= 50,000`}),`)`]}),`: Routes to `,_jsx(_components.code,{children:`POST /compliance/queue-review`}),` (Manual officer review).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Default`}),`: Routes to `,_jsx(_components.code,{children:`POST /risk/flag-suspicious`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`During runtime, the unchosen branches immediately gray out on the canvas, providing instant visual diagnostic proof of compliance routing without digging through server logs.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Switch (Router) Component","description":"Multi-branch dynamic routing, condition evaluations, and intelligent DAG branch skipping.","href":"/components/switch-router"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Visual Multi-Case Builder","slug":"1-visual-multi-case-builder","depth":2,"children":[]},{"title":"2. Dynamic Handles \u0026 Color-Coded Badges","slug":"2-dynamic-handles-\u0026-color-coded-badges","depth":2,"children":[]},{"title":"Evaluation Target Is Required","slug":"evaluation-target-is-required","depth":2,"children":[]},{"title":"Run Results","slug":"run-results","depth":2,"children":[]},{"title":"3. Intelligent DAG Condition Skipping","slug":"3-intelligent-dag-condition-skipping","depth":2,"children":[]},{"title":"4. Convergent Downstream Nodes","slug":"4-convergent-downstream-nodes","depth":2,"children":[]},{"title":"5. Enterprise Decision Tree Patterns","slug":"5-enterprise-decision-tree-patterns","depth":2,"children":[{"title":"Threshold-Based Approval Routing","slug":"threshold-based-approval-routing","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"quixa-io","siteName":"Quixa","title":"Switch (Router) Component - Quixa","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T12:35:53.292Z","originalFileLocation":"components/switch-router.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Multi-branch dynamic routing, condition evaluations, and intelligent DAG branch skipping.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Quixa\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Switch (Router) Component - Quixa\">\u003cmeta data-mint-head property=\"og:description\" content=\"Multi-branch dynamic routing, condition evaluations, and intelligent DAG branch skipping.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Quixa\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.quixa.io/components/switch-router\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://quixa-io.mintlify.site/_mintlify/api/og/v2?division=Visual+Canvas+%26+Components\u0026amp;title=Switch+%28Router%29+Component\u0026amp;description=Multi-branch+dynamic+routing%2C+condition+evaluations%2C+and+intelligent+DAG+branch+skipping.\u0026amp;theme=2f4b106342fafa75cfd9c873\u0026amp;signature=0f9756cd4d83fa9dccd1233d30a34a086b9be2ae5e69a68203b502251f575285\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Switch (Router) Component - Quixa\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Multi-branch dynamic routing, condition evaluations, and intelligent DAG branch skipping.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://quixa-io.mintlify.site/_mintlify/api/og/v2?division=Visual+Canvas+%26+Components\u0026amp;title=Switch+%28Router%29+Component\u0026amp;description=Multi-branch+dynamic+routing%2C+condition+evaluations%2C+and+intelligent+DAG+branch+skipping.\u0026amp;theme=2f4b106342fafa75cfd9c873\u0026amp;signature=0f9756cd4d83fa9dccd1233d30a34a086b9be2ae5e69a68203b502251f575285\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/quixa-io/n3hl9MMhzSUSar_K/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Quixa\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7c3aed\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.quixa.io/components/switch-router\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/components/switch-router.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.quixa.io/#organization\",\"name\":\"Quixa\",\"url\":\"https://docs.quixa.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/quixa-io/bCH3nNjFwfIIDBeO/logo/light.svg?fit=max\u0026auto=format\u0026n=bCH3nNjFwfIIDBeO\u0026q=85\u0026s=49c211a943054b51967bc6a871e56232\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.quixa.io#website\",\"name\":\"Quixa\",\"url\":\"https://docs.quixa.io\",\"publisher\":{\"@id\":\"https://docs.quixa.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.quixa.io/components/switch-router#webpage\",\"url\":\"https://docs.quixa.io/components/switch-router\",\"name\":\"Switch (Router) Component\",\"description\":\"Multi-branch dynamic routing, condition evaluations, and intelligent DAG branch skipping.\",\"dateModified\":\"2026-11-16T12:35:53.292Z\",\"isPartOf\":{\"@id\":\"https://docs.quixa.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.quixa.io/components/switch-router#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.quixa.io/components/switch-router#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform Guides\",\"item\":\"https://docs.quixa.io/concepts/core-concepts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visual Canvas \u0026 Components\",\"item\":\"https://docs.quixa.io/components/node-configuration\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Switch (Router) Component\",\"item\":\"https://docs.quixa.io/components/switch-router\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.quixa.io/components/switch-router#article\",\"headline\":\"Switch (Router) Component\",\"name\":\"Switch (Router) Component\",\"description\":\"Multi-branch dynamic routing, condition evaluations, and intelligent DAG branch skipping.\",\"url\":\"https://docs.quixa.io/components/switch-router\",\"mainEntityOfPage\":{\"@id\":\"https://docs.quixa.io/components/switch-router#webpage\"},\"dateModified\":\"2026-11-16T12:35:53.292Z\",\"publisher\":{\"@id\":\"https://docs.quixa.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.quixa.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Quixa\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Quixa\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/components/switch-router.md","siteName":"Quixa","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Platform Overview","sidebarTitle":"Overview","href":"/introduction"},{"title":"5-Minute Quickstart","href":"/quickstart"}]},{"group":"Platform Guides","pages":[{"group":"Concepts \u0026 Data Engine","icon":"database","pages":[{"title":"Core Concepts","href":"/concepts/core-concepts"},{"title":"Architecture \u0026 Hierarchy","href":"/concepts/architecture-hierarchy"},{"title":"Data Binding \u0026 Variables","href":"/concepts/data-binding-and-variables"},{"title":"SpecTrum™ \u0026 Contract Drift","sidebarTitle":"SpecTrum™ Drift","href":"/concepts/spectrum-drift"},{"title":"Import from Postman","sidebarTitle":"Postman Import","href":"/concepts/postman-import"},{"title":"Collections Overview","sidebarTitle":"Collections Overview","href":"/concepts/collections-overview"},{"title":"Flows Overview","sidebarTitle":"Flows Overview","href":"/concepts/flows-overview"},{"title":"Suites Overview","sidebarTitle":"Suites Overview","href":"/concepts/suites-overview"},{"title":"Deleting and Restoring Collections","sidebarTitle":"Delete \u0026 Restore","href":"/concepts/collection-lifecycle"}]},{"group":"Visual Canvas \u0026 Components","icon":"diagram-project","pages":[{"title":"Node Configuration (Request Config Dialog)","href":"/components/node-configuration"},{"title":"HTTP Request \u0026 Standalone Components","href":"/components/http-request"},{"title":"Request Body Types and File Upload","sidebarTitle":"Body Types \u0026 Files","description":"Send JSON, URL-encoded forms, multipart forms with files, binary files or raw text/XML from any request node.","href":"/components/request-body-types"},{"title":"Switch (Router) Component","href":"/components/switch-router"},{"title":"Looping Engine Suite (For, Repeat, Collect)","description":"Iterate over collections, execute count-based loops, and collect aggregated pipeline outputs.","href":"/components/loops"},{"title":"Stop Flow Component","href":"/components/stop-flow"},{"title":"Wait / Delay Node","href":"/components/wait"},{"title":"Collect / Barrier Join Node","href":"/components/collect-barrier"},{"title":"Polyglot Scripting \u0026 Code Execution","href":"/components/scripting"},{"title":"Webhook Trigger \u0026 Callback Node","href":"/components/webhook"},{"title":"Subflows \u0026 Modular Workflows","href":"/components/subflows"},{"title":"Canvas Frames \u0026 Domain Grouping","href":"/components/canvas-grouping"},{"title":"Canvas Tools: Frames, Annotations \u0026 Multi-Branch Joins","href":"/components/canvas-tools"},{"title":"Data Mapping \u0026 Variable Expressions","href":"/components/data-mapping"}]},{"group":"Testing \u0026 Quality Engineering","icon":"flask","pages":[{"title":"Assertions \u0026 Validation Engine","href":"/testing/assertions-and-validation"},{"title":"Endpoint Polling","href":"/testing/polling"},{"title":"OpenAPI Shadow Flows (Negative Testing)","href":"/testing/shadow-flows"},{"title":"Proactive Health Checks","href":"/testing/proactive-health-checks"},{"title":"Execution Results \u0026 Subflow Inspection","href":"/testing/execution-results-subflows"},{"title":"Flow Suites \u0026 Test Pipelines","href":"/testing/flow-suites"},{"title":"Scheduled Executions (Hangfire)","href":"/testing/scheduled-executions"},{"title":"Karate BDD Framework Integration","href":"/testing/karate-bdd"},{"title":"AI Test Scenario Creator","href":"/testing/ai-scenario-creator"},{"title":"Automated Newsletter Dogfooding","href":"/testing/newsletter-automation"}]},{"group":"Enterprise Governance","icon":"shield-check","pages":[{"title":"API Maturity \u0026 Governance Scorecard","href":"/governance/api-maturity-scorecard"},{"title":"Enterprise SSO: Microsoft Entra ID and LDAP","href":"/security/enterprise-sso"},{"title":"Architecture and Data Flow","href":"/security/architecture-and-data-flow"},{"title":"Installation Hardening Guide","href":"/security/hardening-guide"},{"title":"Roles, Sessions and Audit","href":"/security/access-control"},{"title":"AI Data Handling","href":"/security/ai-data-handling"},{"title":"Supply Chain and Release Verification","href":"/security/supply-chain"},{"title":"Privacy, Incidents and Patching","href":"/security/privacy-and-incident-response"}]},{"group":"Plugins \u0026 Extensions","icon":"puzzle-piece","pages":[{"title":"QPlugin Architecture \u0026 Sandboxed Extensions","href":"/plugins/overview"},{"title":"Enterprise Plugin Store","href":"/plugins/enterprise-plugin-store"},{"title":"Custom Plugin Authoring (QPlugin)","href":"/plugins/qplugin"},{"title":"Model Context Protocol (MCP) Server","sidebarTitle":"MCP Server","href":"/plugins/quixa-mcp"}]},{"group":"Analytics \u0026 CI/CD","icon":"chart-line","pages":[{"title":"Metabase Analytics \u0026 Incident Alerts","href":"/analytics/metabase-metrics"},{"title":"Headless CLI \u0026 CI/CD Quality Gates","href":"/cli/headless-runner"},{"title":"Developer Tools \u0026 Web Terminal","href":"/cli/web-terminal"}]},{"group":"AI \u0026 Autonomous Architect","icon":"wand-magic-sparkles","pages":[{"title":"Prompt-to-Flow AI Architect","href":"/ai/prompt-to-flow"},{"title":"AI Assistant: Edit, Explain \u0026 Self-Heal Your Flow","href":"/ai/canvas-copilot"},{"title":"Multi-Model AI \u0026 BYOK Architecture","href":"/ai/byok-models"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Switch (Router) Component - Quixa","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":[],"chunks":[]}