Difference between revisions of "Category:LSL CSV"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
===One Way To Embed Lists in Lists=== | ===One Way To Embed Lists in Lists=== | ||
<pre> | |||
list a = [ | list a = [ | ||
"<"+llList2CSV(["a", "b", "c"])+">", | "<"+llList2CSV(["a", "b", "c"])+">", | ||
Line 18: | Line 18: | ||
"<"+llList2CSV(["g", "h", "i"])+">" | "<"+llList2CSV(["g", "h", "i"])+">" | ||
]; | ]; | ||
</pre> |
Revision as of 00:42, 12 April 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
The most important thing to know about LSL CSV, it's not traditional CSV. It is not RFC 4180.
There are four caveats with LSL CSV.
- Spaces are trimmed from the beginning and the end of entries.
- Anything following a "<" is considered part of the same item as long as the number of ">" and "<" are unbalanced.
- All "<" and ">" are included in the output string.
- Having a ">" before a "<" has no effect on the output, having too many ">" is not an issue.
- All Commas not encapsulated in "<" ">" will be treated as deliminators.
- Anything datatype containing a float value when converted to a CSV may loose precision.
One Way To Embed Lists in Lists
list a = [ "<"+llList2CSV(["a", "b", "c"])+">", "<"+llList2CSV(["d", "e", "f"])+">", "<"+llList2CSV(["g", "h", "i"])+">" ];
Pages in category "LSL CSV"
The following 2 pages are in this category, out of 2 total.