Left

Returns a substring from beginning of the input string, with a length specified by the count argument.

Returns: string

Usage

Left( string, count )

Arguments

Argument Description
string
(string, required)

A string or a variable that contains one.

count
(number, required)

A non-zero integer. A positive value of n will return n characters from the beginning of the string. A negative value of n will return (length - n) characters from the beginning of the string.

Examples

#left('abcd',3)# = abc

See also