Blocks Deprecated
Deprecated: use the web blocks for new pages This block belongs to state pages and UI components. Existing pages keep running, but new pages should use the web blocks. See Web Pages and the migration guide.

switch

This block is part of the styling group and was last modified in core v10.4.28.

switch v10.4.28

returns a style based of the given expression

In pins 2
  • expression value required
  • Default uistyle
Out pins 2
  • uistyle uistyle
  • match condition

    Returns true in case a match was found.

A typical wiring for switch: the uistyle out pin feeds regular card.

Studio canvas example for the switch block: typical wiring for switch.

Version history

Introduced in v10.4.28.


Back to styling Return to the main group to view all sub-groups Back to style Return to the group to view all blocks within this group