Difference between revisions of "Right"
Jump to navigation
Jump to search
(No difference)
|
Revision as of 09:56, 13 July 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Function: string right(string src, string divider);
Returns text right of a specified separator
See also: Left
Example:
string notecardparameter = right(sdata,"="); //in a notecard line that reads Colour=Brown, returns "Brown"
Specification
<lsl> string right (string src, string divider) {
integer iStart = llSubStringIndex( src, divider ) + 1; string result = llGetSubString( src, iStart, llStringLength(src) - 1 ) ; return result;
}
</lsl>