Difference between revisions of "Right"
Jump to navigation
Jump to search
m (woops ^^;) |
(/me resolves to proof read better.) |
||
Line 24: | Line 24: | ||
|also_tests | |also_tests | ||
|also_articles | |also_articles | ||
|location | |location | ||
|notes | |notes | ||
|cat1=Examples | |cat1=Examples |
Revision as of 17:51, 14 July 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
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
Specification
<lsl>string right(string src, string divider) {
integer index = llSubStringIndex( src, divider ); if(~index) return llDeleteSubString( src, 0, index + llStringLength(divider) - 1); return src;
}</lsl>
Examples
<lsl>string value = right("Colour=Brown", "="); //value == "Brown"</lsl>