Functions

len

Supported By

Syntax

[the] len of factor

len ( expression )

Factor and expression yield strings.

Example

put len("tail") into it -- yields 4

put len("Nu är det slut…") -- yields 15

if the len of word n of steve > 25 ¬
  then add 1 to fogIndex

Description

The len function returns the number of characters (including spaces, tabs, line breaks, and other control and formatting characters) in the string passed to it.

Note

The expression len(factor) is identical in effect to the number of characters in factor but is more efficient.

Synonym

length