> 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/instructions/instructions.if_loop_instructions.md).

# Instructions.if\_loop\_instructions()

Returns an Instructions object for the 'if loop' instructions.

`if_loop_instructions() →` [`Instructions`](/glider-ide/api/instruction.md)

## Query Example

```python
from glider import *


def query():
  return Instructions().if_loop_instructions().exec(2)
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FHi3N42dFwdyXxEvMcfsM%2Fimage.png?alt=media&amp;token=a6dd8529-2812-4d81-aaa5-f31d3b61e0b3" alt=""><figcaption></figcaption></figure>
