> For the complete documentation index, see [llms.txt](https://docs.openbrim.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openbrim.org/developers/paramml-developer-guide/functions/custom-function/getlistitem-list1-index1-index2-listindex1index2.md).

# getlistitem (List1, Index1, Index2) , List\[Index1]\[Index2]

This function is used for getting the value of an item at a specific index in a list.(Where list items are based on zero-indexed.)

Here's a general explanation of how you can retrieve the value of an item in a list.

**Example:**

```xml
<O N="getlistitemObject1" T="Project" Category="Functions" TransAlignRule="1">
    <!-- created by ParamML Examples on 8/9/2023 -->
    <P N="List1" V="[[1,2],[10,5],[4,8],[2,1]]" />
    <P N="item_3_0_Value1" V="getlistitem(List1,3,0)" />
    <P N="item_3_0_Value2" V="List1[3][0]" />
</O>
```

![](https://openbrim.atlassian.net/wiki/download/attachments/2167799846/image-20230809-122202.png?api=v2) As illustrated in the provided image, "List1" represents a collection composed of lists containing numerical elements. There are two distinct methods for extracting the value of the initial number within the list situated at the fourth index of "List1." The first approach involves utilizing the function `getlistitem(List1, 3, 0)`, where the parameters correspond to the target list ("List1"), the desired list index (3), and the item index within that inner list (0). Alternatively, the second method employs direct indexing with `List1[3][0]`. Regardless of the chosen method, both pathways yield the same result, returning the value of 2, which is the first element within the specified list. To view this example in the library, see (<https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objid5g4147u1adp1hh1i3aiv> )


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.openbrim.org/developers/paramml-developer-guide/functions/custom-function/getlistitem-list1-index1-index2-listindex1index2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
