# 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="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F22dOYfUiG8N0gBpMFMJY%2Fimage.png?alt=media&#x26;token=8db63ce6-03be-4545-9556-a1a03f4355ac" alt=""><figcaption><p>GET function</p></figcaption></figure>
