> 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_instructions.md).

# Instructions.if\_instructions()

Returns an Instructions object for the 'if' instructions.

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

## Query Example

```python
from glider import *


def query():
  return Instructions().if_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%2FVhHxxekE0BTw0jvbG55i%2Fimage.png?alt=media&amp;token=ac3aea8f-b418-4024-a496-d37e2f21253b" alt=""><figcaption></figcaption></figure>
