Functions

length

Supported By

Syntax

[the] length of factor

length ( expression )

Factor and expression yield strings.

Example

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

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

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

Description

The length 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 length(factor) is identical in effect to the number of characters in factor but is more efficient.