LlDumpList2String

来自人工智能助力教育知识百科
跳转至: 导航搜索

Template:Needs Translation/


函数名
Function: string llDumpList2String( list src, string separator );
参数:
  • 列出src
  • separator-字符串分隔符
返回值:返回一个字符串,该字符串是将列表src转换为条目之间带有分隔符的字符串。
注意事项
示例
示例1
list mylist = ["a", "b", "c", "d"];
string tmp = llDumpList2String(mylist, "**");
//tmp now equals: "a**b**c**d"

示例2

list mylist = [<10,5,7>, 100, "c", "d"];
string tmp = llDumpList2String(mylist, "**");
//tmp now equals: "<10,5,7>**100**c**d"

示例3

default{
    state_entry(){
        list my_list = [1, 2.0, "a string", llGetOwner()];
        llOwnerSay("<" + llDumpList2String(my_list,"><") + ">"); 
//says: "<1><2.000000><a string><a822ff2b-ff02-461d-b45d-dcd10a2de0c2>"        
    }
}
相关函数
llParseString2List

llParseStringKeepNulls llCSV2List llList2CSV

相关事件