Str.right

From OpenEUO
Revision as of 18:16, 11 November 2010 by Ximan (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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