Length

Calculate the number of characters in a string of text.

Input

Field Definition Type Required
text String value, including special characters and numbers. String TRUE

Output

Field Definition Type
length

Returns the number of letters or characters in a string value.

Number

Example

If the text input field contains test, length returns 4.

If the text input field contains test-1, length returns 6.

If the text input field contains test 1, length returns 6 (a blank counts as a character).

Related topics

Functions in Workflows

About the elements of Okta Workflows