validate hex color
This block is part of the condition group and was last modified in core v14.0.3.
validate hex color v14.0.3 Validates the given HEX color
- value required
valueThe HEX color to check, e.g.
#8D3F1A. Only 3 or 6 hex digits (0-9, a-f) are valid - include # required
conditionWhether the value must start with a
#. When off, a leading#makes the check fail : the hash is never optional
- passes
conditionReturns
trueif the HEX color checks pass
Outputs true when the value is exactly 3 or 6 hex digits (0-9 a-f, case-insensitive). include_hash=true requires a leading # before the digits; include_hash=false requires NO leading # - the hash is mandatory in one mode and forbidden in the other, never optional. 4, 5, and 8-digit (alpha) forms are false.
A typical wiring for validate HEX color: true feeds the include_hash pin; value feeds the hexcolor pin; the condition out pin feeds OR.
Commonly used with
In production blueprints, this block is most often wired together with:
- true: feeds into this block. Gives the condition true hard-coded.
- OR: this block feeds into it. operator for a set of operands is true if and only if one or more of its operands is true.
- get fields: feeds into this block. Gets the selected fields from the given object.
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 