Difference between revisions of "LlCSV2List"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Kelly Linden (talk | contribs) |
Kelly Linden (talk | contribs) |
||
Line 7: | Line 7: | ||
|spec=Anything between "<" and ">" is considered a single value regardless of the existence of a comma between. | |spec=Anything between "<" and ">" is considered a single value regardless of the existence of a comma between. | ||
|caveats=*It eats leading and trailing spaces from values. | |caveats=*It eats leading and trailing spaces from values. | ||
* It will turn strings that look like vectors or rotations into vectors or rotations | |||
** ''<1, 2, 3>'' will be turned into a list with 1 element, not 3 | |||
|constants | |constants | ||
|examples=<pre> | |examples=<pre> |
Revision as of 16:04, 8 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: list llCSV2List( string src );196 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a list made from src as comma separated values.
• string | src |
Specification
Anything between "<" and ">" is considered a single value regardless of the existence of a comma between.
Caveats
- It eats leading and trailing spaces from values.
- It will turn strings that look like vectors or rotations into vectors or rotations
- <1, 2, 3> will be turned into a list with 1 element, not 3
Examples
default { state_entry() { string csv = "first,second,third"; list my_list = llCSV2List(csv); llOwnerSay("CSV: " + csv); integer i; for (i=0; i<llGetListLength(my_list); ++i) { llOwnerSay("my_list[" + (string)i + "]: " + llList2String(my_list,i)); } } }
See Also
Functions
• | llList2CSV | |||
• | llDumpList2String | |||
• | llParseString2List | |||
• | llParseStringKeepNulls |
Articles
• | Typecast |