---
description: >-
  Returns true if the instruction is end_loop instruction, otherwise returns
  false.
---

# Instruction.is\_end\_loop()

`is_end_loop()` -> `bool`

## Query Example

```python
from glider import *

def query():
  return Instructions().exec(1000).filter(lambda x: x.is_end_loop())
```

With the Glider 1.0 update, calling the [`exec`](../instructions/instructions.exec) function returns an [`APIList`](../iterables/apilist)`[`[`Instruction`]()`]`. You can then use [`Instruction`]() functions, which are applied to each element of the [`APIList`](../iterables/apilist)`[`[`Instruction`]()`]`

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FIBLT0mDXFXjlOp0jQG5o%2Fimage.png?alt=media&#x26;token=01e001dc-ee0e-4f4f-ba3f-64dbffc2c776" alt=""><figcaption></figcaption></figure>
