Difference between revisions of "Str.right"

From OpenEUO
Jump to: navigation, search
m (Created page with "== 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...")
(No difference)

Revision as of 18:15, 11 November 2010

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

  • str.right