String Nodes

> Compare, combine, measure, and create text values with Brickr's string nodes.

String nodes work with the string pin type. They are pure nodes that compute on demand without sequence connections.

Creating Strings

make-string

Creates a string value from a literal input. Use this node to define a constant string value in your flow.

| Pin | Direction | Type | |-----|-----------|------| | value | Input | string | | result | Output | string |

Use make-string when you need to provide a constant value like an API endpoint, a default message, or a field name to other nodes.

Comparison

string-equal

Returns true if two strings are identical.

| Pin | Direction | Type | |-----|-----------|------| | a | Input | string | | b | Input | string | | result | Output | boolean |

String comparison is case-sensitive. The strings "Hello" and "hello" are not equal. If you need case-insensitive comparison, consider converting both values to the same case before comparing.

Combining

append-string

Appends one string to the end of another.

| Pin | Direction | Type | |-----|-----------|------| | a | Input | string | | b | Input | string | | result | Output | string |

Use append-string to build up text values by joining two strings together. Chain multiple append-string nodes to combine more than two values.

Measurement

string-length

Returns the number of characters in the string.

| Pin | Direction | Type | |-----|-----------|------| | value | Input | string | | result | Output | number |

Combine string-length with comparison nodes like math-greater or math-less to validate input length. For example, check that a user's message is at least 10 characters before processing it.