# SWITCH

<div><figure><img src="/files/nfi9CSqTufxkZn5r2XSN" alt=""><figcaption><p>UI</p></figcaption></figure> <figure><img src="/files/DY3bVmnUvjHx5AXnRyqh" alt=""><figcaption><p>Config Form</p></figcaption></figure></div>

### Judgment logic

```
1 ( A and B and ... ) or ( C and ... ) or ...
or
2 ( A and B and ... ) or ( C and ... ) or ...
or
3 ...
```

### Demo

<figure><img src="/files/Y1gNkH3RnSmrVieJLVzi" alt=""><figcaption></figcaption></figure>

Set up a random array and count the number, display different message texts based on judgment logic.

<figure><img src="/files/fAqdMUFODwuH1XGH2SZ9" alt=""><figcaption><p>Condition 1</p></figcaption></figure>

<figure><img src="/files/rANn9rEeJ4saA9XAde0o" alt=""><figcaption><p>Condition 2</p></figcaption></figure>

<figure><img src="/files/PerM1F8pfL0mYPzuNGRT" alt=""><figcaption><p>Condition 3</p></figcaption></figure>

Each condition corresponds to a branch.

### Audit logs

After the job is executed, the actual judgment logic can be viewed in the details.

<figure><img src="/files/93qz99hM7ZYell4aAhBb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/sTCSSe1NXhFK9PJDjM0x" alt=""><figcaption></figcaption></figure>

### Judgment type

Same like [IF](/en/flow/nodes/if.md#judgment-type).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tangramapps.com/en/flow/nodes/switch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
