validate value length

This block is part of the condition group and was last modified in core v14.0.3.

validate value length v14.0.3

Validates a value against length checks, maximum length check is optional

In pins 3
  • value required
    value

    The value to check

  • min. length required
    number

    The minimum length the value should have, inclusive

  • max. length
    number

    The maximum length the value should have, exclusive : a value of exactly this length fails

Out pins 1
  • passes
    condition

    Returns true if the value checks pass

Coerces value to a string and counts unicode characters (nil counts as 0). True when the count is >= min_length and, if max_length is connected, strictly LESS THAN max_length - the maximum is exclusive despite its pin label. Example: value="abcde" max_length=5 -> false.

A typical wiring for validate value length: value feeds the value pin; number feeds the min_length pin; the condition out pin feeds branch.

Studio canvas example for the validate value length block: typical wiring for validate value length.

Version history

Introduced in v14.0.3.


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