A Special Note When Using llParseString2List

I learned a new attribute of the llParseString2List function today (the hard way):

When you use multiple separators, the order that the separators are listed in is important. If you want to parse a list of values like:

Squeebee Wakawaka, You User, My Friend

And also accomodate:

Squeebee Wakawaka,You User,My Friend

You need to add both “,” and “, ” as separators. The catch is that If you list “,” first and “, ” second then the elements will have a leading space in the list, ruining checks further in the code. By reversing the order the system first strips “, ” from the string, cleaning out leading spaces.

Of course, this still gets tripped up with multiple spaces after the comma, but we need to balance simplicity with handling edge cases.

Leave a Reply