length
Description
Returns the number of characters in a string.
Syntax
Like many functions in DataPrime, length
supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.
Arguments
Name | Type | Required | Description |
---|---|---|---|
value | string | true | The string to measure |
Example
Count the number of characters in a string
Consider the following document:
Use length
to count the number of characters:
Output
Theme
Light