🔢
List Length
base.list.lengthBase SetUtilityReturns how many items are in a list spark. Pair with Condition to branch on empty lists or check leaderboard size.
On the canvas
This is what List Length looks like when you place it on your flow. Each field below is something you configure in the inspector panel.
🔢Utility
List Length
base.list.lengthlistrequired
{{result}}
asrequired
count
Config fields
| Field | Type | Req | What it does |
|---|---|---|---|
list{{result}} | text | yes | List 📋 |
ascount | text | yes | Save count as ✨ |
Sparks this piece adds
After this piece runs, these values are available as sparks in every node downstream.
{{count}}numberList item countOutput ports
outputNumber spark with the count
📐
In TypeScript, this would be…
Not something you need to write — just a look at what Kitcord does for you.
TypeScript
const count = list.length;
// {{count}}More Utility pieces