# Get List Size

**Introduction**

The "Get List Size" step calculates the size (i.e., the number of elements) of a specified list variable. This step is used for scenarios where you need to determine the length of a list to make decisions, iterate over elements, or simply report the size as part of your automation logic.

**Configuration**

* **List**: Choose the list variable whose size you want to determine. This configuration is mandatory and ensures the step operates on the correct data within your automation.

**Outputs**

* **Size**: The output variable that stores the size of the list. This is an integer value representing the number of elements contained in the list.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flexy.bot/modules/lists/steps/get-list-size.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
