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

# Instruction.is\_throw()

Returns True if the instruction is throw instruction, otherwise returns False.

`is_throw()` -> `bool`

## Query Example

```python
from glider import *


def query():
  return (
    Functions()
    .with_name("BliBliToken")
    .exec(1)
    .instructions()
    .exec()
    .filter(lambda x: x.is_throw())
  ) 
```

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)`]`

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FCKRMG6s5fgxOOPsMPAJL%2FScreenshot%202025-09-03%20at%2012.59.15%E2%80%AFPM.png?alt=media&amp;token=cdc37369-dabe-443a-be2f-d9e43e9ffd18" alt=""><figcaption></figcaption></figure>
