Back to page

Switch Node

Raw Markdown & AI/RAG Chunks
Raw Markdown Source 1160 chars
# Switch Node

The **Switch** logic element routes phone pathways down distinct branching channels based on variable evaluation comparisons.

---

## String Evaluation Branching Map

```mermaid
graph LR
    EvalVar["Read Session Value<br/>(e.g., Target Edge: 'VIP')"] ==>|"Match Attributes"| CompareMatrix["Switch Evaluation Engine"]
    CompareMatrix ==>|"Value == 'True'"| PathTrue["Route Edge: Nominal Service"]
    CompareMatrix -->|"Value == 'False'"| PathFalse["Route Edge: Standard Support"]

    classDef coreToken fill:#0f172a,stroke:#38bdf8,stroke-width:2px,color:#fff,rx:6px,ry:6px;
    classDef pathToken fill:#312e81,stroke:#ec4899,stroke-width:2px,color:#fff,rx:6px,ry:6px;

    class EvalVar,CompareMatrix coreToken;
    class PathTrue,PathFalse pathToken;
```

---

## Comparison modes

### 1. Direct Equal Matches
Type explicit target validation strings directly inside the property inspector tab to route incoming calls instantly if internal keys map exactly.

### 2. Default Fallback Routing
Always connect the **Default** output target circle to a standard workflow path to ensure calls do not terminate if non-expected input fields arrive.
AI Chunks (RAG) 3 chunks
Chunk #1 Switch Node
# Switch Node

The **Switch** logic element routes phone pathways down distinct branching channels based on variable evaluation comparisons.

---
Chunk #2 String Evaluation Branching Map
## String Evaluation Branching Map

```mermaid
graph LR
    EvalVar["Read Session Value<br/>(e.g., Target Edge: 'VIP')"] ==>|"Match Attributes"| CompareMatrix["Switch Evaluation Engine"]
    CompareMatrix ==>|"Value == 'True'"| PathTrue["Route Edge: Nominal Service"]
    CompareMatrix -->|"Value == 'False'"| PathFalse["Route Edge: Standard Support"]

    classDef coreToken fill:#0f172a,stroke:#38bdf8,stroke-width:2px,color:#fff,rx:6px,ry:6px;
    classDef pathToken fill:#312e81,stroke:#ec4899,stroke-width:2px,color:#fff,rx:6px,ry:6px;

    class EvalVar,CompareMatrix coreToken;
    class PathTrue,PathFalse pathToken;
```

---
Chunk #3 Comparison modes
## Comparison modes

### 1. Direct Equal Matches
Type explicit target validation strings directly inside the property inspector tab to route incoming calls instantly if internal keys map exactly.

### 2. Default Fallback Routing
Always connect the **Default** output target circle to a standard workflow path to ensure calls do not terminate if non-expected input fields arrive.