获取列表项总数


描述

You can use this action to find out how many entries there are in a list. You supply the variable that holds the list index (as returned by the action Create List) and the target variable to store the returned number of items in the list (which can be flagged as a temporary local variable to be used until the end of the script or event).


动作语法:

Get List Item Count Syntax


参数:

参数 描述
列表 The index (stored in a variable) to get the item count from
目标 The target variable to store the returned item count


例如:

Get List Item Count Example
上面的动作块代码获取全局变量中引用的列表的大小,然后使用重复循环来遍历并销毁存储在列表中ID对应的实例。重复循环完成后,从内存中释放这个列表数据。