在某些参数值包含特殊字符(例如:comma、space、tab)的函数中,使用方括号 ([])。例如,FlipList(PropValue(Custom.NodeList),[comma]) 对函数调用 PropValue(Custom.NodeList) 返回的逗号分隔的列表执行 FlipList 函数。
以下函数可以在方括号 ([]) 中包含 comma、space 或 tab 作为分隔符参数:ArrayCount、ArrayIndex、ArrayItem、FlipList、Intersection、ListContains、PadList、RangeListContains、IsRangeListSubset、MinList、MaxList、AvgList、SumList、SortList、ListDistinct、ListNodePropValues 和 ListNodesWith。
除了常规的文本字符串以外,ReplaceStr 函数(需要旧模式和新模式的参数)还可在方括号 ([]) 中包含 comma、space、tab、crlf、cr、lf、openparen 或 closeparen。
注:
包含文字逗号的参数值将导致此语法错误:“参数数量无效”。将逗号分隔的列表作为函数调用的结果传入是有效的用法,并将按预期进行处理。例如:
无效语法:FlipList(a,b,c,[comma])
有效语法:FlipList(PropValue(Custom.NodeList),[comma]),其中 Custom.NodeList 值 = a,b,c