Reference > Expressions > Built-in Functions > String Functions > Len

Len

Returns an integer value that is the length of the text, including empty spaces.

Syntax

Len(str)

Enabled for

Search/Dashboard No
Business Rules Yes
Quick Actions Yes
Workflow Objects Yes
Reports No

Parameter

str

The text for which to find the length.

Return Value

Number value.

Examples

$(Len(Symptom))

The above example returns the length of the contents of the Symptom field in the current instance.

 

$(Len("This is an example "))

The above example returns 20. Note the two trailing spaces in the text.

 

$(Len(Trim("This is an example ")))

The above example returns 18 as the Trim() function trims off the two empty spaces at the end of the text.