> 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/ifinstruction/ifinstruction.get_condition.md).

# IfInstruction.get\_condition()

`get_condition() →` [`Condition`](/glider-ide/api/instruction/ifinstruction/condition.md)

Returns condition of the if-statement.

## Query Example

```python
from glider import *

def query():
  instructionlist = Instructions().if_instructions().exec(1)
  
  condition = instructionlist[0].get_condition()
  print(condition.is_eq())
  return instructionlist
```

## Output Example

<figure><img src="/files/YJTH5LDtRcnTSmdZN49O" alt=""><figcaption></figcaption></figure>
