> For the complete documentation index, see [llms.txt](https://docs.discorddungeons.me/quest-editor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.discorddungeons.me/quest-editor/list-blocks/get_in_list.md).

# Get In List Block

## In List Block

These all apply to the `get and remove` and `remove` options aswell.

## Get In List Block

![Get In List](/files/-LNixDQawJU7JaAge_uH)

The get in list block returns the item in the list with the specified index.

### Generated Code

```javascript
var list;

list[index];
```

## Get In List From End Block

![Get In List From End](/files/-LNixDQcw7Ya-Y-0-3Ry)

The get in list from end block returns the item in the list with the specified index from the end.

### Generated Code

```javascript
var list;

list.slice(-1)[index];
```

## Get First In List Block

![Get First In List](/files/-LNixDQe5_lzvSXklTmX)

The get first in list block returns the first item in the list.

### Generated Code

```javascript
var list;

list[0];
```

## Get Last In List Block

![Get Last In List](/files/-LNixDQgGADu3wE3tMkw)

The get last in list block returns the last item in the list.

### Generated Code

```javascript
var list;

list.slice(-1)[0];
```
