# GET

The GET function can be used to select a value from a specified position in a list.

## Syntax

```javascript
GET(list, index)
```

## Arguments

list – List of values to check. Required.

index – The position of the value in the list. Required.

## Return value

A single value

## Example

```javascript
GET([2,5,8,3,7,5], 3)
//Returns 8
```

In the example shown below, we take the store 1 sales for the *Central* region and the store 2 sales for all the other regions.

<figure><img src="/files/4cveppuum8DSeXkUlWwD" alt=""><figcaption><p>GET function</p></figcaption></figure>


---

# 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.inforiver.com/formula-syntax/measure-column-selection-functions/get.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.
