Compare Char Range

From Visuino
Revision as of 13:14, 11 August 2025 by Visuino (talk | contribs) (Created page with "Image:TArduinoCompareCharRange.png == Summary == Use this component to compare an incoming character against a specified range, outputting a boolean value indicating whether the character falls within the range. == Description == The **Compare Char Range** component compares an incoming character against a specified range of characters. The comparison can be case-sensitive or case-insensitive, and it can include or exclude the boundary values. - **Enabled**: When...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File:TArduinoCompareCharRange.png

Summary

Use this component to compare an incoming character against a specified range, outputting a boolean value indicating whether the character falls within the range.

Description

The **Compare Char Range** component compares an incoming character against a specified range of characters. The comparison can be case-sensitive or case-insensitive, and it can include or exclude the boundary values.

- **Enabled**: When enabled, the component actively compares the incoming character. When disabled, it passes the input through unmodified.

- **Ignore Case**: When enabled, the comparison ignores case differences. For example, 'a' and 'A' would be considered equal.

- **Include Limits**: When enabled, the boundary characters are included in the range. For example, if the range is 'a' to 'z', both 'a' and 'z' are included.

- **Is Outside Range**: When enabled, the output is true if the character is outside the specified range. When disabled, the output is true if the character is within the range.

- **Range: Max**: Specifies the maximum character in the range. The default is 'Z', but you can set any character.

- **Range: Min**: Specifies the minimum character in the range. The default is 'a', but you can set any character.

- **In (char)**: Receives the incoming character to be compared.

- **Out (boolean)**: Outputs true if the character meets the comparison criteria; otherwise, outputs false.

This component is particularly useful for validating character input, such as ensuring that a character falls within a specific range before processing it further.

Diagram:

Categories

Properties

  • Enabled – Toggle the component’s functionality on or off.
  • Ignore Case – When enabled, the comparison ignores case differences.
  • Include Limits – When enabled, the boundary characters are included in the range.
  • Is Outside Range – When enabled, the output is true if the character is outside the specified range.
  • Range: Max – Specifies the maximum character in the range.
  • Range: Min – Specifies the minimum character in the range.

Pins

  • In – Character input to be compared.
  • Out – Boolean output indicating whether the character meets the comparison criteria.