> 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()

`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="/files/iON7lJUjavl8ai5o5aJL" alt=""><figcaption></figcaption></figure>
