Lucee Function Reference
Function LEFT
Returns a substring from beginning of the input string, with a length specified by the count argument.
Example
left(string string,number count):string
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
string | string | Yes | A string or a variable that contains one. |
count | number | Yes |
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. |