Recursive Size (Expression) — Skript
Addon: Skript · Category: Expression · Since: 1.0
Syntax
[the] recursive (amount|number|size) of %objects%Description
The recursive size of list. Returns the recursive size of the list with sublists included, e.g.
<pre> {list::*} Structure<br> ├──── {list::1}: 1<br> ├──── {list::2}: 2<br> │ ├──── {list::2::1}: 3<br> │ │ └──── {list::2::1::1}: 4<br> │ └──── {list::2::2}: 5<br> └──── {list::3}: 6 </pre>
Where using %size of {list::*}% will only return 3 (the first layer of indices only), while %recursive size of {list::*}% will return 6 (the entire list) Please note that getting a list's recursive size can cause lag if the list is large, so only use this expression if you need to!
Examples
if recursive size of {player-data::*} > 1000: