Skip to main content

Length node

Description

The Length node takes one input. It counts the number of characters in the inputted text, e.g. hello = 4

Usage

This node is an input. It can be added to the segments of comparison nodes and other functions.

alt text
alt text

It can be:

Options

Select the node to access its options:

  • Swap - use a different function node. Any populated segments are kept, which limits the options.

  • Delete - remove the node from the segment.

Example

Fetch all defects with a description longer than 200 characters

In full detail:

Fetch items of the Defects interface where the length of their Description attribute is greater than 200

alt text
See JSON code
{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designInterfaces_defects"
},
"children": [
{
"type": "GreaterThan",
"children": [
{
"type": "Length",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsDescription"
}
}
]
},
{
"type": "Number",
"properties": {
"value": [200]
}
}
]
}
]
}