Left

Strings
Aptilis 1

Left(String, HowManyCharacters)

Left returns the specified count of characters of the string given, starting from the left.
If count goes beyond the length of the string given, the return value will be no longer than the original string. (There is no padding to meet the length requested).

Return Value:
A substring of the string given, which length will be at most, the one specified.

Example:

a = "Aptilis" $
b = left(a$, 3) $
print("3 letters of Aptilis: ", b$, "\n")
Result:
3 letters of Aptilis: Apt