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)) tolist_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_filterexpressions already exposecount, so this node is unnecessary when the value is only needed inside the expression.
Related nodes
list_get/list_slice— extraction based on the lengthmath_op— calculate from the lengthlist_map— situations where the expression'scountcan replace this node