*Workflows › Reference › Functions › Conditional*

# Switch

> A function of the expression language. Category: Conditional. `switch`.

## Signature

```text
switch({ branches: { type: "array", data: { type: "object", data: { case: anyBooleanExpression, then: anyExpression } }[] }, default: anyExpression })
```

## Where it can be used

Its result can be used where the editor expects a value of these types.

- list
- boolean
- number
- object
- text

More in [Functions](https://docs.filmo.io/workflows/data-and-expressions).

FUNCTION `switch`

## Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `branches` | any value | Yes |  |
| `default` | any value | Yes |  |

---

Canonical URL: https://docs.filmo.io/workflows/reference/functions/switch  
Last updated: 2026-10-25