Char Toggle Switch

From Visuino
Revision as of 08:57, 11 August 2025 by Visuino (talk | contribs) (Created page with "Image:TArduinoCharToggleSwitch.png == Summary == Use this component to select and output one of two characters based on a boolean selector. == Description == The **Char Toggle Switch** component enables you to output a character based on a toggling boolean condition. When the **Select** pin is **True**, the **True** character (configured via property) is sent to the **Out** pin; when **Select** is **False**, the **False** character is output. Set the **Initial...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary

Use this component to select and output one of two characters based on a boolean selector.

Description

The **Char Toggle Switch** component enables you to output a character based on a toggling boolean condition. When the **Select** pin is **True**, the **True** character (configured via property) is sent to the **Out** pin; when **Select** is **False**, the **False** character is output. Set the **Initial Select Value** property to define which character is output initially before any input on the **Select** pin.

This component is useful when you need to dynamically alternate between two characters—for example, switching delimiters, indicators, or control characters—based on control signals in your Visuino data flow.

Diagram:

Categories

Properties

  • Initial Select Value – Specifies the initial state of the selector (True or False), determining the first character to output.

Pins

  • Select – Boolean input that determines which character is output.
  • True – Character output when **Select** is **True**.
  • False – Character output when **Select** is **False**.
  • Out – Outputs the currently selected character based on **Select** state.