Lua
C++
Edit

Left

This function returns the leftmost characters of the string.

Syntax

Parameter Description
count maximum number of characters to return

Returns

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.

Example

local s = "Hello, how are you today?"
Print(Left(s, 5))
Copyright © 2024 Ultra Software.
All rights reserved.