User Tools

Site Tools


en:left

Left (Function)

Format

Description

If length is greater than or equal to zero, returns a portion of the specified string_expression, starting from the first character on the left and continuing for length_expression characters. If length is less than zero then remove length_expression characters from the left of the string.

Example

print left("Hello", 2)
print left("Hello", -2)

will display

He
llo

See Also

History

0.9.5bNew To Version
1.99.99.53Added length < 0
en/left.txt · Last modified: 2017/09/07 15:01 by junior-root