Str.right

From OpenEUO
Jump to: navigation, search

Calling Pattern

Call

local r = sl.str.right(a,n)

Args

a is a string

Results

r is a string


Usage Example

local s = sl.str
local r = s.right('Get the right side of a string.',12)
print(r)
--> of a string.

Description

Right returns the rightmost n characters of string a.

Upon Error

Right fails silently. If right receives inappropriate arguments then a '' (empty string) is returned.

See Also