User Tools

Site Tools


en:right

This is an old revision of the document!


Right (Function)

Format

right( string_expr, length)

returns string_value

Description

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

Example

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

will display

lo
Hel

See Also

History

0.9.5bNew To Version
1.99.99.53Added start position < 0
en/right.1470324195.txt.gz · Last modified: 2020/02/28 10:46 (external edit)