> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/callable/callable.end_loop_instructions.md).

# Callable.end\_loop\_instructions()

Returns end\_loop instructions of the function/modifier.

`end_loop_instructions() →` [`Instructions`](/glider-ide/api/instructions.md)

The functions will return end\_loop instructions for all types of loops e.g. while/for

end\_loop instruction is not a "real" instruction but rather an abstract one representing the end of the loop.

## Example

```python
from glider import *
def query():
  functions = Functions().exec(500)

  loop = []
  for function in functions:
    for loop_instruction in function.end_loop_instructions().exec():
      # For each function, return the loop instructions
      loop.append(loop_instruction)

  return loop
```

## Example output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FDWNlrOURYga2l6LHHSkj%2Fimage.png?alt=media&amp;token=eefd2342-6a44-4b37-a2b3-4d731a1fd281" alt=""><figcaption></figcaption></figure>
