Back to Node List

List Length

list_length

Outputs the number of elements in a list

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
リスト
list
List<Any>
Required
入力リスト

Output Ports

NameTypeDescription
要素数
count
Int
要素数

Overview

A small node that simply returns the number of elements in a list as an integer. Insert it when another calculation needs the candidate count—for an index limit, a progress denominator, or a count display.

Usage tips

  • To get the last element, send list_length - 1 (math_op(Subtract)) to list_get.index.
  • In setups where the list length changes dynamically (such as after a filter), it supplies the current length so dependent calculations remain valid.
  • list_map / list_filter expressions already expose count, so this node is unnecessary when the value is only needed inside the expression.

Related nodes

  • list_get / list_slice — extraction based on the length
  • math_op — calculate from the length
  • list_map — situations where the expression's count can replace this node
Back to Node List
List Length — PixPipeline Node Reference