List Length

Get the number of items in a list.

Returns the number of items in a list as a number. Use it to size a list before deciding how to proceed.

Inputs

  • ListrequiredList<T>. Uses this list to count how many items it contains.

Outputs

  • CountNumber. Returns the number of items in the list.

Example use cases

Escalate large lists

Count the tickets returned by a query and, when the length crosses a threshold, trigger an escalation branch.

See also