From Second Life Wiki
Revision as of 17:45, 24 January 2015 by ObviousAltIsObvious Resident (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Function: string right( string src, string divider );

Returns text right of a specified separator
Returns a string that is the text in src that is right of the first occurrence of divider.

• string src
• string divider

If divider is not found then src is returned in it's entirety.

See also: Left


string right(string src, string divider) {
    integer index = llSubStringIndex( src, divider );
        return llDeleteSubString( src, 0, index + llStringLength(divider) - 1);
    return src;


string value = right("Colour=Brown", "="); //value == "Brown"