---
title: "switch · RUAL Documentation"
description: "returns a style based of the given expression"
canonical: https://docs.rual.nl/block-types/styling/uistyle_switch
language: en
---

# switch

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

returns a style based of the given expression

- expression required `value`

- Default `uistyle`

- uistyle `uistyle`

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

A typical wiring for [switch](https://docs.rual.nl/block-types/styling/uistyle_switch): the `uistyle` out pin feeds [regular card](https://docs.rual.nl/block-types/state%20ui/state_card).

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

### Version history

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