---
title: "switch · RUAL Documentation"
description: "RUAL flow block."
canonical: https://docs.rual.nl/block-types/flow/switch
language: en
---

# switch

This block is part of the [`flow`](https://docs.rual.nl/block-types/flow) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

- flow `flow`

- expression required `value`

- default `flow`

- match `condition` Returns true in case a match was found.

A typical wiring for [switch](https://docs.rual.nl/block-types/flow/switch): [branch](https://docs.rual.nl/block-types/flow/branch) feeds the `flow` pin; the `default` out pin feeds [branch](https://docs.rual.nl/block-types/flow/branch).

![Studio canvas example for the switch block: typical wiring for switch.](https://docs.rual.nl/canvas-examples/switch.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [branch](https://docs.rual.nl/block-types/flow/branch): wired in both directions with this block.

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): feeds into this block. Gets the selected fields from the given object.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
