Skip to main content

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 parametersInput parameter typeDescription
TextanyContent to measure. Lists are joined with newline characters; other values are converted to strings

Command Output Parameters

Output parametersOutput parameter typeDescription
Text LengthintNumber 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.