Difference between revisions of "Talk:Left"
Jump to navigation
Jump to search
(New page: Contrary to the description, this appears to return the text to the left of the first occurrence of the separator, ''and'' the separator itself: return llDeleteSubString( src, index + ll...) |
|||
Line 4: | Line 4: | ||
Removing " + llStringLength(divider)" would make this act as described. | Removing " + llStringLength(divider)" would make this act as described. | ||
This must have been a transposition error using the definition of '''right''', which contains this correct expression: | |||
return llDeleteSubString( src, 0, index + llStringLength(divider) - 1); | |||
Moving the second parameter back one, and putting a "-1" as the second would work, if it were not for the fact we want to exclude the separator. |
Revision as of 20:57, 3 April 2009
Contrary to the description, this appears to return the text to the left of the first occurrence of the separator, and the separator itself:
return llDeleteSubString( src, index + llStringLength(divider), -1);
Removing " + llStringLength(divider)" would make this act as described.
This must have been a transposition error using the definition of right, which contains this correct expression:
return llDeleteSubString( src, 0, index + llStringLength(divider) - 1);
Moving the second parameter back one, and putting a "-1" as the second would work, if it were not for the fact we want to exclude the separator.