Talk:Left

From Second Life Wiki
Jump to navigation Jump to search

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.

You are correct, I have corrected the function as you suggested. -- Strife (talk|contribs) 14:33, 4 April 2009 (UTC)