> 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/instruction/instruction.is_if_loop.md).

# Instruction.is\_if\_loop()

Returns true if the instruction is if\_loop instruction, otherwise returns false.

`is_if_loop()` -> `bool`

## Query Example

```python
from glider import *

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

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

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FfJ6IQ0dP6FkDvHPHY5aQ%2Fimage.png?alt=media&amp;token=907d2d35-0fbf-4f38-b09c-cd96ab5ef0ec" alt=""><figcaption></figcaption></figure>
