Skip to main content

Length Of

Returns number of elements in the list.

Length Of block

Description

The Length Of block returns number of elements in the list. This is a code block part of the Lists drawer.

Usage

Use Length Of to determine the size of a list. This is essential for iterating through lists, validating list bounds before accessing elements, or making decisions based on list size.

Syntax

Input:

  • A list

Notes

  • Returns a number representing the count of elements in the list
  • Returns 0 for an empty list
  • Useful for loop boundaries when iterating through lists
  • Can be used to validate index values before accessing list elements
  • List - Creates a list with specified elements
  • Item number in - Returns the item at a specific index
  • Contains - Checks if an element exists in a list
  • Index of in - Returns the position of an element in a list