string.length

This function returns the length of a string.

Syntax

string.length("str")

Arguments

Argument

Type

Description

Str

string

Source string

Returns

Type

Description

int

An integer that indicates the length of the string.

Examples

The function string.length("FLOGO") returns 5.