This function returns the leftmost characters of the string.
Parameter | Description |
---|---|
count | maximum number of characters to return |
Returns the leftmost characters of the string. If the count parameter is equal to or greater than the length of the string, the entire string is returned.
local s = "Hello, how are you today?"
Print(Left(s, 5))