Skip to main content

List Length

Runs on: Shared — pure logic, runs on the Streamerly backend or inside a chatbox overlay.

The List Length node counts how many items are in a list and outputs that count as a number. It accepts any list type and always produces a plain number, making it easy to feed into math operations, comparisons, or chat messages.

This is useful for checking whether a list is empty before trying to read from it, displaying the current giveaway entry count to chat, or using the size as the upper bound when generating a random index.

Inputs

NameTypeDescription
listlistThe list to measure.

Outputs

NameTypeDescription
lengthnumberThe number of items currently in the list. An empty list outputs 0.

Example

You are running a giveaway and want to announce how many people have entered. After each new entry is added with List Add Item, pipe the result into List Length, then pass the length into a Text Format node to build a message like "There are 42 entries so far!" and send it to chat.