EasyUse/Logicgenerated
Length Any(lengthAnything)
The Length Any node is a generic logic utility that returns the length of any input value as an integer.
length Anything
any
length
Easy Use
Description
The Length Any node is a generic logic utility that returns the length of any input value as an integer. It is part of the EasyUse/Logic category and is useful when you need to inspect the size of dynamic data inside a workflow, such as a list, string, or other object with a defined length.
Inputs
any
- Type:
ANYTYPE - Required: Yes
Accepts any value passed from another node. The node measures the length of this value and returns it as an integer. The exact meaning of the length follows Python's normal length semantics for the received object, so common cases include:
- Strings: number of characters
- Lists, tuples, sets, dictionaries: number of elements
- Other sized objects: their standard length value
Outputs
INT
- The length of the input value as an integer.
This output can be connected to other logic nodes, comparisons, or any workflow input expecting an integer.
Usage Notes
- The input is required, so the node must receive some value before it can produce a length.
- Because the input type is
ANYTYPE, the node can be placed between many different kinds of nodes without type restrictions. - If the input value does not have a defined length, the node will raise an error. Make sure the connected input supports length measurement.
- This node is useful for quick sanity checks and branching logic based on data size, such as comparing list lengths, string lengths, or other sized objects in a workflow.
Comments
Sign in with GitHub to join the discussion.