Get Text Length
Command description
Get the number of characters in the text and save the result as an integer variable.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Text | any | Content to measure. Lists are joined with newline characters; other values are converted to strings |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Text Length | int | Number of characters |
Note
The command joins list items with newline characters and converts other values to text, then applies Python len(). Each Unicode code point normally counts as one character, including letters, digits, Chinese characters, and symbols.
AI Workflow Generation Notes
- Count text character length, not file size or number of bytes.