Availability
This routine is available starting with katl-commons 1.0.
Syntax
length(str)
Description
Returns the length of the provided string, 0 if the string is null or has no chars.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
str | string | Yes | Specifies a character expression the Length() returns the number of characters for. |
Return type
number
Example
wlen = length("This text is <wlen> characters long"); print("Length is " + wlen);
Print Lenght is 35
See also