strings.length

Supported in:
strings.length(string_value)

Description

Returns the number of characters in the input string.

Param data types

STRING

Return type

INT

Code samples

Example 1

The following is an example with a string test.

strings.length("str") = 3
Example 2

The following is an example with an empty string as input.

strings.length("") = 0
Example 3

The following is an example with a special char string.

strings.length("!@#$%^&*()-_") = 12
Example 4

The following is an example with a string with spaces.

strings.length("This is a test string") = 21